Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.c @ 336:eb994ee40029
Make some functions static
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 18 Jul 2005 21:27:08 +0100 |
parents | 871e53769084 |
children | 3a25be278864 |
comparison
equal
deleted
inserted
replaced
335:3ec329a1c621 | 336:eb994ee40029 |
---|---|
33 typedef struct { | 33 typedef struct { |
34 gchar *name; | 34 gchar *name; |
35 gchar *value; | 35 gchar *value; |
36 } T_setting; | 36 } T_setting; |
37 | 37 |
38 inline GSList **get_list_ptr(guint type) | 38 static inline GSList **get_list_ptr(guint type) |
39 { | 39 { |
40 if (type == SETTINGS_TYPE_OPTION) return &option; | 40 if (type == SETTINGS_TYPE_OPTION) return &option; |
41 else if (type == SETTINGS_TYPE_ALIAS) return &alias; | 41 else if (type == SETTINGS_TYPE_ALIAS) return &alias; |
42 else if (type == SETTINGS_TYPE_BINDING) return &binding; | 42 else if (type == SETTINGS_TYPE_BINDING) return &binding; |
43 return NULL; | 43 return NULL; |
44 } | 44 } |
45 | 45 |
46 // Return a pointer to the node with the requested key, or NULL if none found | 46 // Return a pointer to the node with the requested key, or NULL if none found |
47 GSList *settings_find(GSList *list, const gchar *key) | 47 static GSList *settings_find(GSList *list, const gchar *key) |
48 { | 48 { |
49 GSList *ptr; | 49 GSList *ptr; |
50 | 50 |
51 if (!list) return NULL; | 51 if (!list) return NULL; |
52 | 52 |