libpurple/util.h

changeset 26649
1a6c4fd19355
parent 25911
f22097dc8413
child 26995
ef76b70d0078
equal deleted inserted replaced
26648:1a733d58d74a 26649:1a6c4fd19355
29 #ifndef _PURPLE_UTIL_H_ 29 #ifndef _PURPLE_UTIL_H_
30 #define _PURPLE_UTIL_H_ 30 #define _PURPLE_UTIL_H_
31 31
32 #include <stdio.h> 32 #include <stdio.h>
33 33
34 typedef struct _PurpleUtilFetchUrlData PurpleUtilFetchUrlData;
35 typedef struct _PurpleMenuAction PurpleMenuAction;
36 typedef struct _PurpleKeyValuePair PurpleKeyValuePair;
37
34 #include "account.h" 38 #include "account.h"
35 #include "xmlnode.h" 39 #include "xmlnode.h"
36 #include "notify.h" 40 #include "notify.h"
37 41
42
38 #ifdef __cplusplus 43 #ifdef __cplusplus
39 extern "C" { 44 extern "C" {
40 #endif 45 #endif
41 46
42 typedef struct _PurpleUtilFetchUrlData PurpleUtilFetchUrlData; 47 struct _PurpleMenuAction
43
44 typedef struct _PurpleMenuAction
45 { 48 {
46 char *label; 49 char *label;
47 PurpleCallback callback; 50 PurpleCallback callback;
48 gpointer data; 51 gpointer data;
49 GList *children; 52 GList *children;
50 } PurpleMenuAction; 53 };
51 54
52 typedef char *(*PurpleInfoFieldFormatCallback)(const char *field, size_t len); 55 typedef char *(*PurpleInfoFieldFormatCallback)(const char *field, size_t len);
53 56
54 /** 57 /**
55 * A key-value pair. 58 * A key-value pair.
56 * 59 *
57 * This is used by, among other things, purple_gtk_combo* functions to pass in a 60 * This is used by, among other things, purple_gtk_combo* functions to pass in a
58 * list of key-value pairs so it can display a user-friendly value. 61 * list of key-value pairs so it can display a user-friendly value.
59 */ 62 */
60 typedef struct _PurpleKeyValuePair 63 struct _PurpleKeyValuePair
61 { 64 {
62 gchar *key; 65 gchar *key;
63 void *value; 66 void *value;
64 67
65 } PurpleKeyValuePair; 68 };
66 69
67 /** 70 /**
68 * Creates a new PurpleMenuAction. 71 * Creates a new PurpleMenuAction.
69 * 72 *
70 * @param label The text label to display for this action. 73 * @param label The text label to display for this action.

mercurial