~ubuntu-branches/ubuntu/hardy/syslog-ng/hardy

« back to all changes in this revision

Viewing changes to src/main.c.x

  • Committer: Bazaar Package Importer
  • Author(s): SZALAY Attila
  • Date: 2006-05-25 11:21:50 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060525112150-b18srkxcrz980xi9
Tags: 1.9.11-1
* New upstream version
  - Fixed log facility and priority detecting. (Closes: #350120, #350344, #357071, #367256)
* Added bison to Build-Dependency. (Closes: #368765)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef CLASS_DEFINE
2
 
struct reread_config
3
 
{
4
 
  struct callback super;
5
 
  struct syslog_backend *backend;
6
 
  int state;
7
 
};
8
 
extern struct ol_class reread_config_class;
9
 
#endif /* !CLASS_DEFINE */
10
 
 
11
 
#ifndef CLASS_DECLARE
12
 
static void do_reread_config_mark(struct ol_object *o, 
13
 
void (*mark)(struct ol_object *o))
14
 
{
15
 
  struct reread_config *i = (struct reread_config *) o;
16
 
  mark((struct ol_object *) i->backend);
17
 
}
18
 
 
19
 
struct ol_class reread_config_class =
20
 
{ STATIC_HEADER,
21
 
  &callback_class, "reread_config", sizeof(struct reread_config),
22
 
  do_reread_config_mark,
23
 
  NULL
24
 
};
25
 
#endif /* !CLASS_DECLARE */
26
 
 
27
 
#ifndef CLASS_DEFINE
28
 
struct report_stats
29
 
{
30
 
  struct callback super;
31
 
  int timeout;
32
 
  struct syslog_backend *backend;
33
 
};
34
 
extern struct ol_class report_stats_class;
35
 
#endif /* !CLASS_DEFINE */
36
 
 
37
 
#ifndef CLASS_DECLARE
38
 
static void do_report_stats_mark(struct ol_object *o, 
39
 
void (*mark)(struct ol_object *o))
40
 
{
41
 
  struct report_stats *i = (struct report_stats *) o;
42
 
  mark((struct ol_object *) i->backend);
43
 
}
44
 
 
45
 
struct ol_class report_stats_class =
46
 
{ STATIC_HEADER,
47
 
  &callback_class, "report_stats", sizeof(struct report_stats),
48
 
  do_report_stats_mark,
49
 
  NULL
50
 
};
51
 
#endif /* !CLASS_DECLARE */
52
 
 
53
 
#ifndef CLASS_DEFINE
54
 
struct syslog_backend
55
 
{
56
 
  struct io_backend super;
57
 
  struct syslog_config *newconfig;
58
 
  struct syslog_config *oldconfig;
59
 
  struct persistent_config *persistent;
60
 
  struct syslog_config *configuration;
61
 
};
62
 
extern struct ol_class syslog_backend_class;
63
 
#endif /* !CLASS_DEFINE */
64
 
 
65
 
#ifndef CLASS_DECLARE
66
 
static void do_syslog_backend_mark(struct ol_object *o, 
67
 
void (*mark)(struct ol_object *o))
68
 
{
69
 
  struct syslog_backend *i = (struct syslog_backend *) o;
70
 
  mark((struct ol_object *) i->newconfig);
71
 
  mark((struct ol_object *) i->oldconfig);
72
 
  mark((struct ol_object *) i->persistent);
73
 
  mark((struct ol_object *) i->configuration);
74
 
}
75
 
 
76
 
struct ol_class syslog_backend_class =
77
 
{ STATIC_HEADER,
78
 
  &io_backend_class, "syslog_backend", sizeof(struct syslog_backend),
79
 
  do_syslog_backend_mark,
80
 
  NULL
81
 
};
82
 
#endif /* !CLASS_DECLARE */
83