File: grok_capture.h

package info (click to toggle)
grok 1.20110708.1-4.3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,460 kB
  • sloc: ansic: 3,469; ruby: 987; makefile: 276; sh: 124; yacc: 106
file content (27 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _GROK_CAPTURE_INTERNAL_H_
#define _GROK_CAPTURE_INTERNAL_H_

#include "grok_capture_xdr.h"
#include "grok.h"


void grok_capture_init(grok_t *grok, grok_capture *gct);
void grok_capture_free(grok_capture *gct);

void grok_capture_add(grok_t *grok, const grok_capture *gct);
const grok_capture *grok_capture_get_by_id(grok_t *grok, int id);
const grok_capture *grok_capture_get_by_name(const grok_t *grok, const char *name);
const grok_capture *grok_capture_get_by_subname(const grok_t *grok,
                                                const char *subname);
const grok_capture *grok_capture_get_by_capture_number(grok_t *grok,
                                                       int capture_number);

void grok_capture_walk_init(const grok_t *grok);
const grok_capture *grok_capture_walk_next(const grok_t *grok);

int grok_capture_set_extra(grok_t *grok, grok_capture *gct, void *extra);
void _grok_capture_encode(grok_capture *gct, char **data_ret, int *size_ret);
void _grok_capture_decode(grok_capture *gct, char *data, int size);


#endif /* _GROK_CAPTURE_INTERNAL_H_ */