00001 /* eurephia_session.h -- eurephiaSESSION struct typedef 00002 * 00003 * GPLv2 only - Copyright (C) 2008 - 2010 00004 * David Sommerseth <dazo@users.sourceforge.net> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; version 2 00009 * of the License. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 */ 00021 00032 #ifndef EUREPHIADB_SESSION_STRUCT_H_ 00033 #define EUREPHIADB_SESSION_STRUCT_H_ 00034 00038 typedef enum { stAUTHENTICATION, 00039 stSESSION 00040 } sessionType; 00041 00042 #define SESSION_NEW 1 00043 #define SESSION_EXISTING 2 00044 #define SESSION_REGISTERED 3 00045 #define SESSION_LOGGEDOUT 4 00047 #define SESSVAL_NEW 10 00048 #define SESSVAL_UPDATE 11 00049 #define SESSVAL_DELETE 12 00054 typedef struct { 00055 char *sessionkey; 00056 int sessionstatus; 00058 sessionType type; 00059 eurephiaVALUES *sessvals; 00060 } eurephiaSESSION; 00061 00062 #endif /* !EUREPHIADB_SESSION_STRUCT_H_ */
1.7.1