Show
Ignore:
Timestamp:
02/17/08 04:48:33 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203223713 +0000
git-parent:

[9a02263ee28afbf8381cc8649c3b56a3f118ecbe]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1203223713 +0000
Message:

abstract logging a bit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_log.h

    r1afde4e r44d8413  
    1515  struct _noit_log_stream_outlet_list *next; 
    1616}; 
     17 
     18typedef struct { 
     19  int (*openop)(struct _noit_log_stream *); 
     20  int (*reopenop)(struct _noit_log_stream *); 
     21  int (*writeop)(struct _noit_log_stream *, const void *, size_t); 
     22  int (*closeop)(struct _noit_log_stream *); 
     23} logops_t; 
     24 
    1725typedef struct _noit_log_stream { 
    1826  char *name; 
    1927  int enabled; 
    20   int fd; 
    2128  char *path; 
     29  logops_t *ops; 
     30  void *op_ctx; 
    2231  struct _noit_log_stream_outlet_list *outlets; 
    2332} * noit_log_stream_t;