netapi: add NetFileGetInfo to public header.
authorGünther Deschner <gd@samba.org>
Tue, 9 Sep 2008 19:56:04 +0000 (21:56 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 11 Sep 2008 12:37:11 +0000 (14:37 +0200)
Guenther
(This used to be commit 5dd017b33f7d4154966aa3633d3ef3c8b482ca62)

source3/lib/netapi/netapi.h

index a95ea50a86fe04ade92edc1a4cc4ace027265d0f..f29ba225ffd32527cc3fbb5e2d44ace0fa501117 100644 (file)
@@ -633,6 +633,18 @@ struct SHARE_INFO_1006 {
        uint32_t shi1006_max_uses;
 };
 
+struct FILE_INFO_2 {
+       uint32_t fi2_id;
+};
+
+struct FILE_INFO_3 {
+       uint32_t fi3_id;
+       uint32_t fi3_permissions;
+       uint32_t fi3_num_locks;
+       const char * fi3_pathname;
+       const char * fi3_username;
+};
+
 #endif /* _HEADER_libnetapi */
 
 /****************************************************************
@@ -1770,6 +1782,26 @@ NET_API_STATUS NetShareSetInfo(const char * server_name /* [in] */,
 NET_API_STATUS NetFileClose(const char * server_name /* [in] */,
                            uint32_t fileid /* [in] */);
 
+/************************************************************//**
+ *
+ * NetFileGetInfo
+ *
+ * @brief Close a file
+ *
+ * @param[in] server_name The server name to connect to
+ * @param[in] fileid The fileid of the file that is going to be closed
+ * @param[in] level The level of the FILE_INFO_X buffer
+ * @param[out] buffer The buffer containing a FILE_INFO_X structure
+ * @return NET_API_STATUS
+ *
+ * example file/file_getinfo.c
+ ***************************************************************/
+
+NET_API_STATUS NetFileGetInfo(const char * server_name /* [in] */,
+                             uint32_t fileid /* [in] */,
+                             uint32_t level /* [in] */,
+                             uint8_t **buffer /* [out] [ref] */);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */