]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Implement new config parser in mod_voicemail
authorMathieu Rene <mrene@avgs.ca>
Sat, 20 Jun 2009 03:37:15 +0000 (03:37 +0000)
committerMathieu Rene <mrene@avgs.ca>
Sat, 20 Jun 2009 03:37:15 +0000 (03:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13879 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_xml_config.h
src/switch_xml_config.c

index eac9da0763ccc474b6741c5096a8ebe3cc1d4d97..4cd0df62fff9ca384e5bbd76039bfc3653b0c59f 100644 (file)
@@ -106,20 +106,9 @@ struct switch_xml_config_item {
 #define SWITCH_CONFIG_SET_ITEM(_item, _key, _type, _flags, _ptr, _defaultvalue, _data, _syntax, _helptext)  switch_config_perform_set_item(&(_item), _key, _type, _flags, _ptr, (void*)(_defaultvalue), _data, NULL, _syntax, _helptext)
 #define SWITCH_CONFIG_SET_ITEM_CALLBACK(_item, _key, _type, _flags, _ptr, _defaultvalue, _data, _function, _syntax, _helptext)  switch_config_perform_set_item(&(_item), _key, _type, _flags, _ptr, (void*)(_defaultvalue), _data, _function, _syntax, _helptext)
 
-inline void switch_config_perform_set_item(switch_xml_config_item_t *item, const char *key, switch_xml_config_type_t type, int flags, void *ptr,       
-                                                                               const void* defaultvalue, void *data, switch_xml_config_callback_t function, const char *syntax, const char *helptext)
-{
-       item->key = key;
-       item->type = type;
-       item->flags = flags;
-       item->ptr = ptr;
-       item->defaultvalue = defaultvalue;
-       item->data = data;
-       item->function = function;
-       item->syntax = syntax;
-       item->helptext = helptext;
-}
-
+SWITCH_DECLARE(void) switch_config_perform_set_item(switch_xml_config_item_t *item, const char *key, switch_xml_config_type_t type, int flags, void *ptr,      
+       const void* defaultvalue, void *data, switch_xml_config_callback_t function, const char *syntax, const char *helptext);
+       
 /*! 
  * \brief Gets the int representation of an enum
  * \param enum_options the switch_xml_config_enum_item_t array for this enum
index d2ce9e6d245c58692d577ceb0fe33ce371e35eee..48147a059a26cad9adbd1f76177ce6313671db4c 100644 (file)
@@ -425,6 +425,22 @@ SWITCH_DECLARE(void) switch_xml_config_cleanup(switch_xml_config_item_t *instruc
        }
 }
 
+
+SWITCH_DECLARE(void) switch_config_perform_set_item(switch_xml_config_item_t *item, const char *key, switch_xml_config_type_t type, int flags, void *ptr,      
+                                                                               const void* defaultvalue, void *data, switch_xml_config_callback_t function, const char *syntax, const char *helptext)
+{
+       item->key = key;
+       item->type = type;
+       item->flags = flags;
+       item->ptr = ptr;
+       item->defaultvalue = defaultvalue;
+       item->data = data;
+       item->function = function;
+       item->syntax = syntax;
+       item->helptext = helptext;
+}
+
+
 /* For Emacs:
  * Local Variables:
  * mode:c