diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-11-16 23:20:16 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-11-16 23:20:16 +0100 |
commit | ae11589205291f78c4cf5e9417f69853440d5307 (patch) | |
tree | 6c06f35afa99b2c3005b97213711a8abd7982bd1 /include/libssh/pcap.h | |
parent | 70b947544958eb982984b4d37d584037d1801c6f (diff) | |
download | libssh-ae11589205291f78c4cf5e9417f69853440d5307.tar.gz libssh-ae11589205291f78c4cf5e9417f69853440d5307.tar.xz libssh-ae11589205291f78c4cf5e9417f69853440d5307.zip |
Pcap: more cleanup and minimalist API
Diffstat (limited to 'include/libssh/pcap.h')
-rw-r--r-- | include/libssh/pcap.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/libssh/pcap.h b/include/libssh/pcap.h index 558ce56..831a564 100644 --- a/include/libssh/pcap.h +++ b/include/libssh/pcap.h @@ -6,17 +6,11 @@ #ifdef WITH_PCAP typedef struct ssh_pcap_context_struct* ssh_pcap_context; -typedef struct ssh_pcap_file_struct* ssh_pcap_file; -ssh_pcap_file ssh_pcap_file_new(void); -int ssh_pcap_file_open(ssh_pcap_file pcap, const char *filename); -int ssh_pcap_file_close(ssh_pcap_file pcap); -void ssh_pcap_file_free(ssh_pcap_file pcap); - -/* to be removed from here after tests */ int ssh_pcap_file_write_packet(ssh_pcap_file pcap, ssh_buffer packet, u_int32_t original_len); ssh_pcap_context ssh_pcap_context_new(ssh_session session); +void ssh_pcap_context_free(ssh_pcap_context ctx); enum ssh_pcap_direction{ SSH_PCAP_DIR_IN, @@ -26,7 +20,6 @@ void ssh_pcap_context_set_file(ssh_pcap_context, ssh_pcap_file); int ssh_pcap_context_write(ssh_pcap_context,enum ssh_pcap_direction direction, void *data, u_int32_t len, u_int32_t origlen); -void ssh_set_pcap_context(ssh_session session, ssh_pcap_context pcap); #endif /* WITH_PCAP */ #endif /* PCAP_H_ */ |