Add an assert to track if we try to use an rpc_context after it has been destroyed
[deb_libnfs.git] / include / libnfs-private.h
index f0f8e195da57dc401e1720d00afa28795314b01e..d3cd3ec0b647c862460848c38fa57d4f56494e11 100644 (file)
@@ -24,7 +24,10 @@ struct rpc_fragment {
        char *data;
 };
 
+#define RPC_CONTEXT_MAGIC 0xc6e46435
+
 struct rpc_context {
+        uint32_t magic;
        int fd;
        int is_connected;