Add the magic runes to the end, and reformat.

This should really be split into pcap_defns.h and pcap_fns.h, to match other
header files, but leave it for now. Also, leave in the horrible doxygen
format comments for the nonce (not that I have any opinions on this sort
of thing...).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4093
issue20
tibs 2008-11-11 19:48:50 +00:00
rodzic ebf0a5da1b
commit 94435ef050
1 zmienionych plików z 10 dodań i 7 usunięć

17
pcap.h
Wyświetl plik

@ -123,7 +123,7 @@ typedef struct _pcap_io_ctx *PCAP_reader_p;
* \return 0 on success, non-zero on failure.
*/
int pcap_open(PCAP_reader_p *ctx_p, pcap_hdr_t *out_hdr,
const char *filename);
const char *filename);
/*! Read the next packet from a pcap file. The returned data is
@ -133,14 +133,17 @@ int pcap_open(PCAP_reader_p *ctx_p, pcap_hdr_t *out_hdr,
* \return 1 on success, 0 if we've reached EOF, < 0 on error.
*/
int pcap_read_next(PCAP_reader_p ctx_p, pcaprec_hdr_t *out_hdr,
uint8_t **out_data,
uint32_t *out_len);
uint8_t **out_data,
uint32_t *out_len);
/*! Close the pcap file */
int pcap_close(PCAP_reader_p *ctx_p);
#endif
/* End file */
// Local Variables:
// tab-width: 8
// indent-tabs-mode: nil
// c-basic-offset: 2
// End:
// vim: set tabstop=8 shiftwidth=2 expandtab: