Changeset 621:04dbea46c7a2 in freeDiameter for include/freeDiameter/freeDiameter.h
- Timestamp:
- Dec 7, 2010, 11:13:58 AM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/freeDiameter.h
r620 r621 47 47 #endif /* GNUTLS_VERSION */ 48 48 49 #ifndef SWIG50 49 /* GNUTLS calls debug level */ 51 50 #ifndef GNUTLS_DBG_LEVEL … … 69 68 (__call__); \ 70 69 } 71 #endif /* !SWIG */72 70 73 71 /* Structure to hold the configuration of the freeDiameter daemon */ … … 128 126 struct fifo *cnf_main_ev; /* events for the daemon's main (struct fd_event items) */ 129 127 }; 130 #ifdef SWIG131 %immutable;132 #endif /* SWIG */133 128 extern struct fd_config *fd_g_config; /* The pointer to access the global configuration, initalized in main */ 134 #ifdef SWIG135 %mutable;136 #endif /* SWIG */137 129 138 130 … … 182 174 , "STATE_ZOMBIE" \ 183 175 }; 184 #ifndef SWIG185 176 extern const char *peer_state_str[]; 186 #else /* SWIG */187 %immutable;188 extern const char **peer_state_str;189 %mutable;190 #endif /* !SWIG */191 177 #define STATE_STR(state) \ 192 178 (((unsigned)(state)) <= STATE_MAX ? peer_state_str[((unsigned)(state)) ] : "<Invalid>") … … 697 683 struct fd_list chain; /* link in cnf_endpoints list */ 698 684 699 #ifndef SWIG700 685 union { 701 686 sSS ss; /* the socket information. List is always ordered by ss value (memcmp) -- see fd_ep_add_merge */ … … 703 688 sSA6 sin6; 704 689 sSA sa; 705 } ;706 # else /* !SWIG*/707 /* SWIG does not support unions inside struct, we only define sa in this case */708 sSA sa; 709 #endif /* !SWIG */ 690 } 691 #ifdef SWIG /* nested anonymous unions are not supported yet */ 692 s 693 #endif /* SWIG */ 694 ; 710 695 711 696 #define EP_FL_CONF (1 << 0) /* This endpoint is statically configured in a configuration file */
Note: See TracChangeset
for help on using the changeset viewer.