comparison libfdproto/dictionary.c @ 770:27fef2ca2cf6

Improved usability of fd_dict_getlistof for vendors and apps
author Sebastien Decugis <sdecugis@nict.go.jp>
date Sun, 30 Oct 2011 12:33:28 +0100
parents 99136ec7d9d4
children 003df4a9ade2
comparison
equal deleted inserted replaced
769:99136ec7d9d4 770:27fef2ca2cf6
1966 /* Initialize the sentinel for vendors and AVP lists */ 1966 /* Initialize the sentinel for vendors and AVP lists */
1967 init_object( &new->dict_vendors, DICT_VENDOR ); 1967 init_object( &new->dict_vendors, DICT_VENDOR );
1968 #define NO_VENDOR_NAME "(no vendor)" 1968 #define NO_VENDOR_NAME "(no vendor)"
1969 new->dict_vendors.data.vendor.vendor_name = NO_VENDOR_NAME; 1969 new->dict_vendors.data.vendor.vendor_name = NO_VENDOR_NAME;
1970 new->dict_vendors.datastr_len = CONSTSTRLEN(NO_VENDOR_NAME); 1970 new->dict_vendors.datastr_len = CONSTSTRLEN(NO_VENDOR_NAME);
1971 new->dict_vendors.list[0].o = NULL; /* overwrite since element is also sentinel for this list. */ 1971 /* new->dict_vendors.list[0].o = NULL; *//* overwrite since element is also sentinel for this list. */
1972 new->dict_vendors.dico = new; 1972 new->dict_vendors.dico = new;
1973 1973
1974 /* Initialize the sentinel for applications */ 1974 /* Initialize the sentinel for applications */
1975 init_object( &new->dict_applications, DICT_APPLICATION ); 1975 init_object( &new->dict_applications, DICT_APPLICATION );
1976 #define APPLICATION_0_NAME "Diameter Common Messages" 1976 #define APPLICATION_0_NAME "Diameter Common Messages"
1977 new->dict_applications.data.application.application_name = APPLICATION_0_NAME; 1977 new->dict_applications.data.application.application_name = APPLICATION_0_NAME;
1978 new->dict_applications.datastr_len = CONSTSTRLEN(APPLICATION_0_NAME); 1978 new->dict_applications.datastr_len = CONSTSTRLEN(APPLICATION_0_NAME);
1979 new->dict_applications.list[0].o = NULL; /* overwrite since since element is also sentinel for this list. */ 1979 /* new->dict_applications.list[0].o = NULL; *//* overwrite since since element is also sentinel for this list. */
1980 new->dict_applications.dico = new; 1980 new->dict_applications.dico = new;
1981 1981
1982 /* Initialize the sentinel for types */ 1982 /* Initialize the sentinel for types */
1983 fd_list_init ( &new->dict_types, NULL ); 1983 fd_list_init ( &new->dict_types, NULL );
1984 1984
"Welcome to our mercurial repository"