"Fossies" - the Fresh Open Source Software Archive

Member "sarg-2.4.0/include/ip2name.h" (25 Jun 2014, 705 Bytes) of package /linux/privat/sarg-2.4.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ip2name.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef IP2NAME_HEADER
    2 #define IP2NAME_HEADER
    3 
    4 //! The possible return code of ip2name subfunctions.
    5 enum ip2name_retcode
    6 {
    7     //! Error encountered during the processing.
    8     INRC_Error=-1,
    9     //! No match found.
   10     INRC_NotFound,
   11     //! A match was found.
   12     INRC_Found,
   13 };
   14 
   15 
   16 //! Entry points of the ip2name modules
   17 struct Ip2NameProcess
   18 {
   19     //! The real name of the module.
   20     const char *Name;
   21     //! The link to the next module to try if this one fails.
   22     struct Ip2NameProcess *Next;
   23     //! The function to configure the module.
   24     void (*Configure)(const char *name,const char *param);
   25     //! Function to resolve an IP address into a name.
   26     enum ip2name_retcode (*Resolve)(char *ip,int ip_len);
   27 };
   28 
   29 #endif //IP2NAME_HEADER