Changeset 618:1dbc4c5397d6 in freeDiameter for include/freeDiameter/freeDiameter.h
- Timestamp:
- Dec 3, 2010, 6:29:51 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/freeDiameter.h
r578 r618 47 47 #endif /* GNUTLS_VERSION */ 48 48 49 #ifndef SWIG 49 50 /* GNUTLS calls debug level */ 50 51 #ifndef GNUTLS_DBG_LEVEL … … 68 69 (__call__); \ 69 70 } 70 71 #endif /* !SWIG */ 71 72 72 73 /* Structure to hold the configuration of the freeDiameter daemon */ … … 127 128 struct fifo *cnf_main_ev; /* events for the daemon's main (struct fd_event items) */ 128 129 }; 130 #ifdef SWIG 131 %immutable; 132 #endif /* SWIG */ 129 133 extern struct fd_config *fd_g_config; /* The pointer to access the global configuration, initalized in main */ 134 #ifdef SWIG 135 %mutable; 136 #endif /* SWIG */ 130 137 131 138 … … 175 182 , "STATE_ZOMBIE" \ 176 183 }; 184 #ifndef SWIG 177 185 extern const char *peer_state_str[]; 186 #else /* SWIG */ 187 %immutable; 188 extern const char **peer_state_str; 189 %mutable; 190 #endif /* !SWIG */ 178 191 #define STATE_STR(state) \ 179 192 (((unsigned)(state)) <= STATE_MAX ? peer_state_str[((unsigned)(state)) ] : "<Invalid>") … … 314 327 * !0 : An error occurred. 315 328 */ 316 int fd_peer_getbyid( char * diamid, struct peer_hdr ** peer);329 int fd_peer_getbyid( char * diamid, struct peer_hdr ** S_OUT(peer) ); 317 330 318 331 /* … … 537 550 * ENOMEM : Not enough memory to complete the operation 538 551 */ 539 int fd_rt_fwd_register ( int (*rt_fwd_cb)(void * cbdata, struct msg ** msg), void * cbdata, enum fd_rt_fwd_dir dir, struct fd_rt_fwd_hdl ** handler);552 int fd_rt_fwd_register ( int (*rt_fwd_cb)(void * cbdata, struct msg ** msg), void * cbdata, enum fd_rt_fwd_dir dir, struct fd_rt_fwd_hdl ** S_OUT(handler) ); 540 553 /* 541 554 * CALLBACK: rt_fwd_cb … … 611 624 * ENOMEM : Not enough memory to complete the operation 612 625 */ 613 int fd_rt_out_register ( int (*rt_out_cb)(void * cbdata, struct msg * msg, struct fd_list * candidates), void * cbdata, int priority, struct fd_rt_out_hdl ** handler);626 int fd_rt_out_register ( int (*rt_out_cb)(void * cbdata, struct msg * msg, struct fd_list * candidates), void * cbdata, int priority, struct fd_rt_out_hdl ** S_OUT(handler) ); 614 627 /* 615 628 * CALLBACK: rt_out_cb … … 671 684 672 685 int fd_event_send(struct fifo *queue, int code, size_t datasz, void * data); 673 int fd_event_get(struct fifo *queue, int * code, size_t *datasz, void ** data);674 int fd_event_timedget(struct fifo *queue, struct timespec * timeout, int timeoutcode, int * code, size_t *datasz, void ** data);686 int fd_event_get(struct fifo *queue, int * S_OUT(code), size_t * S_OUT(datasz), void ** S_OUT(data)); 687 int fd_event_timedget(struct fifo *queue, struct timespec * timeout, int timeoutcode, int * S_OUT(code), size_t * S_OUT(datasz), void ** S_OUT(data)); 675 688 void fd_event_destroy(struct fifo **queue, void (*free_cb)(void * data)); 676 689 const char * fd_ev_str(int event); … … 684 697 struct fd_list chain; /* link in cnf_endpoints list */ 685 698 699 #ifndef SWIG 686 700 union { 687 701 sSS ss; /* the socket information. List is always ordered by ss value (memcmp) -- see fd_ep_add_merge */ … … 690 704 sSA sa; 691 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 */ 692 710 693 711 #define EP_FL_CONF (1 << 0) /* This endpoint is statically configured in a configuration file */ … … 726 744 int fd_app_merge(struct fd_list * list, application_id_t aid, vendor_id_t vid, int auth, int acct); 727 745 int fd_app_check(struct fd_list * list, application_id_t aid, struct fd_app **detail); 728 int fd_app_check_common(struct fd_list * list1, struct fd_list * list2, int * common_found);746 int fd_app_check_common(struct fd_list * list1, struct fd_list * list2, int * S_OUT(common_found)); 729 747 int fd_app_empty(struct fd_list * list); 730 748
Note: See TracChangeset
for help on using the changeset viewer.