]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
nfs: fix rust data type declaration
authorVictor Julien <victor@inliniac.net>
Mon, 12 Jun 2017 21:15:42 +0000 (23:15 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 16 Jun 2017 11:11:36 +0000 (13:11 +0200)
src/app-layer-nfs3-udp.h
src/app-layer-nfs3.h
src/output-json-nfs3.c
src/rust.h

index 5c3be9a2047b326f3830cbc9e012da9a5dcd0f01..bfe105d592395b002187a4533d3c7b18a2bc4a0b 100644 (file)
@@ -27,8 +27,4 @@
 void RegisterNFS3UDPParsers(void);
 void NFS3UDPParserRegisterTests(void);
 
-/** Opaque Rust types. */
-typedef struct NFS3tate_ NFS3State;
-typedef struct NFS3Transaction_ NFS3Transaction;
-
 #endif /* __APP_LAYER_NFS3_H__ */
index 9386c47a7308a07b935f841019da62893f3061cc..f50fb507eaeb76207808f9138a348281e8796c6e 100644 (file)
@@ -27,8 +27,4 @@
 void RegisterNFS3Parsers(void);
 void NFS3ParserRegisterTests(void);
 
-/** Opaque Rust types. */
-typedef struct NFS3tate_ NFS3State;
-typedef struct NFS3Transaction_ NFS3Transaction;
-
 #endif /* __APP_LAYER_NFS3_H__ */
index ee988141de924fcc781fd01455a6efda4116d0da..c2d5d04ac5c25df8f0703d1cd340fcb9746cacc3 100644 (file)
@@ -55,6 +55,7 @@
 
 #ifdef HAVE_RUST
 #ifdef HAVE_LIBJANSSON
+#include "rust.h"
 #include "rust-nfs-log-gen.h"
 
 typedef struct LogNFS3FileCtx_ {
index 58684b364869adad88370bf091ff34fbf20c8b48..1bcb13fb15a81d231bf8870d3a32b67758cf6170 100644 (file)
@@ -50,4 +50,8 @@ typedef struct SuricataFileContext_ {
 struct _Store;
 typedef struct _Store Store;
 
+/** Opaque Rust types. */
+typedef struct NFS3tate_ NFS3State;
+typedef struct NFS3Transaction_ NFS3Transaction;
+
 #endif /* !__RUST_H__ */