librpc: Add support for struct timespec
[ddiss/samba.git] / librpc / ndr / libndr.h
index 80b0ec9182dedebc39b012a3ca9133034edd94b0..95e6573748d84afb67b4e12decd37b7f2645b0cb 100644 (file)
@@ -627,4 +627,14 @@ _PUBLIC_ enum ndr_err_code ndr_push_enum_uint1632(struct ndr_push *ndr, int ndr_
 
 _PUBLIC_ void ndr_print_bool(struct ndr_print *ndr, const char *name, const bool b);
 
+_PUBLIC_ enum ndr_err_code ndr_push_timespec(struct ndr_push *ndr,
+                                            int ndr_flags,
+                                            const struct timespec *t);
+_PUBLIC_ enum ndr_err_code ndr_pull_timespec(struct ndr_pull *ndr,
+                                            int ndr_flags,
+                                            struct timespec *t);
+_PUBLIC_ void ndr_print_timespec(struct ndr_print *ndr, const char *name,
+                                const struct timespec *t);
+
+
 #endif /* __LIBNDR_H__ */