Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members  

/home/micah/picogui/pg1/client/c/include/picogui/applet.h

Go to the documentation of this file.
00001 /* 
00002  * applet.h -  PGL applet utility functions
00003  *
00004  * PicoGUI small and efficient client/server GUI
00005  * Copyright (C) 2000-2003 Daniel Jackson <carpman@voidptr.org>
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020  * 
00021  * Contributors:
00022  * 
00023  * 
00024  * 
00025  */
00026 
00027 #ifndef _H_PG_APPLET
00028 #define _H_PG_APPLET
00029 
00030 #define PGL_STOREPREF 0
00031 #define PGL_GETPREF 1
00032 #define PGL_LOADPREFS 2
00033 #define PGL_APPLETINSTALLED 3
00034 #define PGL_LOADAPPLET 4
00035 #define PGL_RELOADPREFS 5
00036 
00037 typedef struct{
00038   unsigned short messageType;
00039   unsigned short senderLen, keyLen, dataLen;
00040   char data[0];
00041 } pglMessage;
00042 
00043 struct pgmemdata pglBuildMessage(unsigned short type, char *senderName, char *key, char *data);
00044 
00045 pglMessage *pglDecodeMessage(pglMessage *message);
00046 
00047 char *pglGetMessageData(pglMessage *message, unsigned short offset);
00048 
00049 #endif 

Generated on Fri May 23 03:39:44 2003 for PicoGUI by doxygen1.3-rc3