Yattm - unified GTK instant-messaging client | |
[Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003] |
00001 #ifndef _SMILEYS_ 00002 #define _SMILEYS_ 00003 00004 00005 struct protocol_smiley_struct 00006 { 00007 char text[16]; // :-), :), ;-), etc 00008 char name[64]; // this goes into the <smiley> tag for the gtkhtml stuff 00009 }; 00010 00011 typedef struct protocol_smiley_struct protocol_smiley; 00012 00013 00014 struct smiley_struct 00015 { 00016 char name[64]; 00017 gchar ** pixmap; // from an xpm file, you know the drill... 00018 }; 00019 00020 typedef struct smiley_struct smiley; 00021 00022 #if defined(__MINGW32__) && defined(__IN_PLUGIN__) 00023 __declspec(dllimport) GList *smileys; 00024 #else 00025 extern GList *smileys; 00026 #endif 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 void init_smileys(void); 00033 gchar * eb_smilify(gchar * text, GList * protocol_smileys); 00034 00035 GList * eb_default_smileys(void); 00036 00037 GList * add_smiley(GList * list, char * name, gchar ** data); 00038 00039 GList * add_protocol_smiley(GList * list, char * text, char * name); 00040 00041 /* someone figure out how to do this with GList * const */ 00042 GList * eb_smileys(void); 00043 00044 smiley * get_smiley_by_name(char * name); 00045 extern int do_smiley; 00046 00047 #ifdef __cplusplus 00048 } /* extern "C" */ 00049 #endif 00050 00051 #endif // ifndef _SMILEYS_