Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > a8e1510b71932ccd6b0a74fe1af13b93 > files > 163

freepops-debug-0.2.9-4mdv2011.0.i586.rpm

/******************************************************************************
 * $Id: session.h,v 1.4 2007/10/27 13:16:26 gareuselesinge Exp $
 * This file is part of FreePOPs (http://www.freepops.org)                    *
 * This file is distributed under the terms of GNU GPL license.               *
 ******************************************************************************/


/******************************************************************************/
 /*!
  * \file   session.h
  * \brief  persistency of user session data
  * 
  * \author Enrico Tassi <gareuselesinge@users.sourceforge.net>
  */
/******************************************************************************/

#ifndef SESSION_H
#define SESSION_H
/**
 * \brief saves (k,data) in the sessions storage
 *
 * \return 0 on success
 */ 
int  session_save(const char* key,const char* data,int overwrite);
//! NULL means not foud, "\a" means locked
const char* session_load_and_lock(const char* key);
void  session_remove(const char* key);
void  session_unlock(const char* key);
void  session_init(void);
#endif