Changeset 907:b772af200865 in freeDiameter for libfdproto
- Timestamp:
- Dec 20, 2012, 7:55:22 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/dictionary.c
r906 r907 156 156 157 157 /* Forward declarations of search functions */ 158 static int search_vendor ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );159 static int search_application ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );160 static int search_type ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );161 static int search_enumval ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );162 static int search_avp ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );163 static int search_cmd ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );164 static int search_rule ( struct dictionary * dict, int criteria, void * what, struct dict_object **result );158 static int search_vendor ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 159 static int search_application ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 160 static int search_type ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 161 static int search_enumval ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 162 static int search_avp ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 163 static int search_cmd ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 164 static int search_rule ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ); 165 165 166 166 /* The following array contains lot of data about the different types of objects, for automated handling */ … … 173 173 int eyecatcher; /* A kind of signature for this object */ 174 174 void (*dump_data)(void * data ); /* The function to dump the data section */ 175 int (*search_fct)(struct dictionary * dict, int criteria, void * what, struct dict_object **result );; /* The function to search an object of this type */175 int (*search_fct)(struct dictionary * dict, int criteria, const void * what, struct dict_object **result );; /* The function to search an object of this type */ 176 176 int haslist[NB_LISTS_PER_OBJ]; /* Tell if this list is used */ 177 177 } dict_obj_info[] = { { 0, "(error)", 0, 0, 0, 0, NULL, NULL, {0, 0, 0} } … … 724 724 } 725 725 726 static int search_vendor ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )726 static int search_vendor ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 727 727 { 728 728 int ret = 0; … … 755 755 } 756 756 757 static int search_application ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )757 static int search_application ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 758 758 { 759 759 int ret = 0; … … 792 792 } 793 793 794 static int search_type ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )794 static int search_type ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 795 795 { 796 796 int ret = 0; … … 823 823 } 824 824 825 static int search_enumval ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )825 static int search_enumval ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 826 826 { 827 827 int ret = 0; … … 928 928 } 929 929 930 static int search_avp ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )930 static int search_avp ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 931 931 { 932 932 int ret = 0; … … 1037 1037 } 1038 1038 1039 static int search_cmd ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )1039 static int search_cmd ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 1040 1040 { 1041 1041 int ret = 0; … … 1110 1110 } 1111 1111 1112 static int search_rule ( struct dictionary * dict, int criteria, void * what, struct dict_object **result )1112 static int search_rule ( struct dictionary * dict, int criteria, const void * what, struct dict_object **result ) 1113 1113 { 1114 1114 int ret = 0; … … 1923 1923 1924 1924 1925 int fd_dict_search ( struct dictionary * dict, enum dict_object_type type, int criteria, void * what, struct dict_object **result, int retval )1925 int fd_dict_search ( struct dictionary * dict, enum dict_object_type type, int criteria, const void * what, struct dict_object **result, int retval ) 1926 1926 { 1927 1927 int ret = 0;
Note: See TracChangeset
for help on using the changeset viewer.