diff options
| author | venaas <venaas> | 2008-12-19 13:35:39 +0000 | 
|---|---|---|
| committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-12-19 13:35:39 +0000 | 
| commit | fb4af51e107fb96380efeadc252e25da079be6cc (patch) | |
| tree | d5da03248565fa66eab981fc4d595c7fb2f81920 /radsecproxy.h | |
| parent | 8d80bf94fc38a158f3721e6725aa48b3993e157a (diff) | |
cleaning up code
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@443 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
| -rw-r--r-- | radsecproxy.h | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/radsecproxy.h b/radsecproxy.h index 7a83402..35a7b99 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -32,8 +32,6 @@  #define RAD_PROTOCOUNT 4  struct options { -    char **listenargs[RAD_PROTOCOUNT]; -    char *sourcearg[RAD_PROTOCOUNT];      char *logdestination;      char *ttlattr;      uint32_t ttlattrtype[2]; @@ -42,6 +40,11 @@ struct options {      uint8_t loopprevention;  }; +struct commonprotoopts { +    char **listenargs; +    char *sourcearg; +}; +  struct request {      struct timeval created;      uint32_t refcount; @@ -188,13 +191,15 @@ struct protodefs {      uint8_t retryintervaldefault;      uint8_t retryintervalmax;      uint8_t duplicateintervaldefault; +    void (*setprotoopts)(struct commonprotoopts *); +    char **(*getlistenerargs)();      void *(*listener)(void*);      int (*connecter)(struct server *, struct timeval *, int, char *);      void *(*clientconnreader)(void*);      int (*clientradput)(struct server *, unsigned char *);      void (*addclient)(struct client *);      void (*addserverextra)(struct clsrvconf *); -    void (*setsrcres)(char *source); +    void (*setsrcres)();      void (*initextra)();  }; | 
