summaryrefslogtreecommitdiffstats
path: root/source/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-09 21:56:04 +0200
committerKarolin Seeger <kseeger@samba.org>2008-09-15 13:00:40 +0200
commit6681e16111dba80961a733ea94bf4e1d1b669829 (patch)
tree29988b8e82037218cefed7838e9b000a43230280 /source/lib/netapi
parent260a072d40a97bb2a6fc356454c8ea0fc4646bee (diff)
downloadsamba-6681e16111dba80961a733ea94bf4e1d1b669829.tar.gz
samba-6681e16111dba80961a733ea94bf4e1d1b669829.tar.xz
samba-6681e16111dba80961a733ea94bf4e1d1b669829.zip
netapi: add NetFileGetInfo to public header.
Guenther (cherry picked from commit 5dd017b33f7d4154966aa3633d3ef3c8b482ca62) (cherry picked from commit 37136e7c3566396161baf6a851d78a339b772bd4)
Diffstat (limited to 'source/lib/netapi')
-rw-r--r--source/lib/netapi/netapi.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/lib/netapi/netapi.h b/source/lib/netapi/netapi.h
index a95ea50a86f..f29ba225ffd 100644
--- a/source/lib/netapi/netapi.h
+++ b/source/lib/netapi/netapi.h
@@ -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 */