Changeset 9e2a109 for lib/libtrace_int.h
- Timestamp:
- 08/04/05 15:37:08 (16 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- ef55d05
- Parents:
- fe43699
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
lib/libtrace_int.h
rdd22d84 r9e2a109 29 29 */ 30 30 31 #ifndef FORMAT_H32 #define FORMAT_H31 #ifndef LIBTRACE_INT_H 32 #define LIBTRACE_INT_H 33 33 34 34 #ifdef __cplusplus … … 75 75 #define RP_BUFSIZE 65536 76 76 77 /** The information about traces that are open 78 * @internal 79 */ 80 struct libtrace_t { 81 struct format_t *format; /**< format driver pointer */ 82 source_t sourcetype; /**< The type (device,file, etc */ 77 struct libtrace_format_data_t; 83 78 84 union { 85 /** Information about rtclients */ 86 struct { 87 char *hostname; 88 short port; 89 } rt; 90 char *path; /**< information for local sockets */ 91 char *interface; /**< intormation for reading of network 92 interfaces */ 93 } conn_info; 94 /** Information about the current state of the input device */ 95 union { 96 int fd; 97 #if HAVE_ZLIB 98 gzFile *file; 99 #else 100 FILE *file; 101 #endif 102 #if HAVE_PCAP 103 pcap_t *pcap; 104 #endif 105 } input; 106 107 struct fifo_t *fifo; 108 struct { 109 void *buf; 110 unsigned bottom; 111 unsigned top; 112 unsigned diff; 113 unsigned curr; 114 unsigned offset; 115 } dag; 79 struct libtrace_event_t { 116 80 struct { 117 81 void *buffer; … … 127 91 }; 128 92 93 /** The information about traces that are open 94 * @internal 95 */ 96 struct libtrace_t { 97 struct libtrace_format_t *format; /**< format driver pointer */ 98 struct libtrace_format_data_t *format_data; /**<format data pointer */ 99 source_t sourcetype; /**< The type (device,file, etc */ 100 101 struct libtrace_event_t event; 102 char *uridata; 103 struct fifo_t *fifo; 104 105 }; 106 129 107 struct libtrace_out_t { 130 struct format_t * format; 108 struct libtrace_format_t *format; 109 struct libtrace_format_data_out_t *format_data; 131 110 132 111 char *uridata; 133 union {134 struct {135 char *hostname;136 short port;137 } rt;138 char *path;139 char *interface;140 } conn_info;141 142 union {143 struct {144 int level;145 } erf;146 147 } options;148 149 union {150 int fd;151 struct rtserver_t * rtserver;152 #if HAVE_ZLIB153 gzFile *file;154 #else155 FILE *file;156 #endif157 #if HAVE_PCAP158 pcap_t *pcap;159 #endif160 } output;161 162 112 struct fifo_t *fifo; 163 164 165 113 }; 166 114 … … 195 143 }; 196 144 197 struct format_t {145 struct libtrace_format_t { 198 146 char *name; 199 147 char *version; … … 219 167 }; 220 168 221 extern struct format_t *form;169 extern struct libtrace_format_t *form; 222 170 223 void register_format(struct format_t *format);171 void register_format(struct libtrace_format_t *format); 224 172 225 173 #ifdef __cplusplus … … 227 175 #endif 228 176 229 #endif // FORMAT_H177 #endif // LIBTRACE_INT_H
Note: See TracChangeset
for help on using the changeset viewer.