Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_forward.h

    r20 r27  
    3232/* set time limit
    3333 */
    34 int sh_forward_set_time_limit(char * str);
     34int sh_forward_set_time_limit(const char * str);
    3535
    3636/* error level for lookup failure
    3737 */
    38 int sh_forward_lookup_level (char * c);
     38int sh_forward_lookup_level (const char * c);
    3939
    4040/* create client entry for given password
     
    4242int sh_forward_make_client (const char * str);
    4343
     44/* set port to which we connect
     45 */
     46int sh_forward_server_port (const char * str);
     47
    4448#ifdef SH_WITH_SERVER
    4549
    4650#ifdef INET_SYSLOG
    47 int set_syslog_active(char * c);
     51int set_syslog_active(const char * c);
    4852#endif
    4953
     
    5559 * and set by accept()
    5660 */
    57 int set_socket_peer (char * c);
     61int set_socket_peer (const char * c);
    5862
    5963/* whether to use client severity
    6064 */
    61 int sh_forward_use_clt_sev (char * c);
     65int sh_forward_use_clt_sev (const char * c);
    6266
    6367/* whether to use client class
    6468 */
    65 int sh_forward_use_clt_class (char * c);
     69int sh_forward_use_clt_class (const char * c);
    6670
    6771/* server port
    6872 */
    69 int sh_forward_set_port(char * c);
     73int sh_forward_set_port(const char * c);
    7074
    7175/* server interface
    7276 */
    73 int sh_forward_set_interface(char * c);
     77int sh_forward_set_interface(const char * c);
    7478
    7579/* a wrapper function
     
    7983/* register a client
    8084 */
    81 int sh_forward_register_client (char * str);
     85int sh_forward_register_client (const char * str);
    8286
    8387/* start server
     
    9195#endif
    9296
    93 #ifdef SH_WITH_CLIENT
     97#if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER)
    9498/* talk to server
    9599 */
    96100long  sh_forward (char * errmsg);
    97101
     102/* set log server
     103 */
     104int sh_forward_setlogserver (const char * address);
     105void reset_count_dev_server(void);
     106#endif
     107
     108#ifdef SH_WITH_CLIENT
    98109
    99110/* request file from server. file may be "CONF" or "DATA".
     
    101112long sh_forward_req_file (char * file);
    102113
    103 /* set log server
    104  */
    105 int sh_forward_setlogserver (char * address);
    106 void reset_count_dev_server(void);
    107 
    108114#endif
    109115
Note: See TracChangeset for help on using the changeset viewer.