~ubuntu-branches/ubuntu/feisty/syslog-ng/feisty-security

« back to all changes in this revision

Viewing changes to src/afuser.c.x

  • Committer: Bazaar Package Importer
  • Author(s): Magosányi Árpád (mag)
  • Date: 2004-03-13 18:35:37 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040313183537-g0fsc2j2y1wbxage
Tags: 1.6.2-3
* changed manpage to better reflect -v. Closes: #228377
* fixed build-depends, hopefully correctly now:( Closes: #237668

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
{
4
4
  struct log_dest_driver super;
5
5
  struct ol_string *username;
 
6
  struct ol_string *template_output;
 
7
  int template_escape;
 
8
  struct syslog_config *cfg;
6
9
};
7
10
extern struct ol_class afuser_dest_class;
8
11
#endif /* !CLASS_DEFINE */
9
12
 
10
13
#ifndef CLASS_DECLARE
 
14
static void do_afuser_dest_mark(struct ol_object *o, 
 
15
void (*mark)(struct ol_object *o))
 
16
{
 
17
  struct afuser_dest *i = (struct afuser_dest *) o;
 
18
  mark((struct ol_object *) i->cfg);
 
19
}
 
20
 
11
21
static void do_afuser_dest_free(struct ol_object *o)
12
22
{
13
23
  struct afuser_dest *i = (struct afuser_dest *) o;
14
24
  ol_string_free(i->username);
 
25
  ol_string_free(i->template_output);
15
26
}
16
27
 
17
28
struct ol_class afuser_dest_class =
18
29
{ STATIC_HEADER,
19
30
  &log_dest_driver_class, "afuser_dest", sizeof(struct afuser_dest),
20
 
  NULL,
 
31
  do_afuser_dest_mark,
21
32
  do_afuser_dest_free
22
33
};
23
34
#endif /* !CLASS_DECLARE */