Navigation



Ignore:
Timestamp:
Dec 7, 2010, 11:13:58 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Cleanup many SWIG definitions from main .h files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r620 r621  
    4747#endif /* GNUTLS_VERSION */
    4848
    49 #ifndef SWIG
    5049/* GNUTLS calls debug level */
    5150#ifndef GNUTLS_DBG_LEVEL
     
    6968        (__call__);                                                     \
    7069}
    71 #endif /* !SWIG */
    7270
    7371/* Structure to hold the configuration of the freeDiameter daemon */
     
    128126        struct fifo       *cnf_main_ev; /* events for the daemon's main (struct fd_event items) */
    129127};
    130 #ifdef SWIG
    131 %immutable;
    132 #endif /* SWIG */
    133128extern struct fd_config *fd_g_config; /* The pointer to access the global configuration, initalized in main */
    134 #ifdef SWIG
    135 %mutable;
    136 #endif /* SWIG */
    137129
    138130
     
    182174        , "STATE_ZOMBIE"                \
    183175        };
    184 #ifndef SWIG
    185176extern const char *peer_state_str[];
    186 #else /* SWIG */
    187 %immutable;
    188 extern const char **peer_state_str;
    189 %mutable;
    190 #endif /* !SWIG */
    191177#define STATE_STR(state) \
    192178        (((unsigned)(state)) <= STATE_MAX ? peer_state_str[((unsigned)(state)) ] : "<Invalid>")
     
    697683        struct fd_list  chain;  /* link in cnf_endpoints list */
    698684       
    699 #ifndef SWIG
    700685        union {
    701686                sSS             ss;     /* the socket information. List is always ordered by ss value (memcmp) -- see fd_ep_add_merge */
     
    703688                sSA6            sin6;
    704689                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        ;
    710695       
    711696#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.