~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to clients/upslog.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2004-05-28 13:10:01 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040528131001-yj2m9qcez4ya2w14
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* upslog.h - table of functions for handling various logging functions */
 
2
 
 
3
/* function list */
 
4
struct flist_t {
 
5
        void    (*fptr)(const char *arg);
 
6
        const   char    *arg;
 
7
        struct  flist_t *next;
 
8
};
 
9
 
 
10
static void do_host(const char *arg);
 
11
static void do_upshost(const char *arg);
 
12
static void do_pid(const char *arg);
 
13
static void do_time(const char *arg);
 
14
static void do_var(const char *arg);
 
15
static void do_etime(const char *arg);
 
16
 
 
17
struct {
 
18
        char    *name;
 
19
        void    (*func)(const char *arg);
 
20
}       logcmds[] =
 
21
{
 
22
        { "HOST",       do_host                 },
 
23
        { "UPSHOST",    do_upshost              },
 
24
        { "PID",        do_pid                  },
 
25
        { "TIME",       do_time                 },
 
26
        { "VAR",        do_var                  },
 
27
        { "ETIME",      do_etime                },
 
28
        { NULL,         (void(*)())(NULL)       }
 
29
};