Andrey Turkin : httpapi: Add HttpDeleteServiceConfiguration, HttpQueryServiceConfiguration and HttpSetServiceConfiguration stubs.
Alexandre Julliard
julliard at winehq.org
Tue Jan 13 10:56:39 CST 2009
Module: wine
Branch: master
Commit: 2f2723893d505f0d51cb746aa88124e494f03906
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f2723893d505f0d51cb746aa88124e494f03906
Author: Andrey Turkin <andrey.turkin at gmail.com>
Date: Mon Jan 12 21:01:57 2009 +0300
httpapi: Add HttpDeleteServiceConfiguration, HttpQueryServiceConfiguration and HttpSetServiceConfiguration stubs.
---
dlls/httpapi/httpapi.spec | 6 ++--
dlls/httpapi/httpapi_main.c | 74 +++++++++++++++++++++++++++++++++++++++++++
include/http.h | 13 +++++++
3 files changed, 90 insertions(+), 3 deletions(-)
diff --git a/dlls/httpapi/httpapi.spec b/dlls/httpapi/httpapi.spec
index 038fb05..a33286a 100644
--- a/dlls/httpapi/httpapi.spec
+++ b/dlls/httpapi/httpapi.spec
@@ -7,7 +7,7 @@
@ stub HttpCreateFilter
@ stub HttpCreateHttpHandle
@ stub HttpDeleteConfigGroup
-@ stub HttpDeleteServiceConfiguration
+@ stdcall HttpDeleteServiceConfiguration(ptr long ptr long ptr)
@ stub HttpFilterAccept
@ stub HttpFilterAppRead
@ stub HttpFilterAppWrite
@@ -27,7 +27,7 @@
@ stub HttpQueryConfigGroupInformation
@ stub HttpQueryControlChannelInformation
@ stub HttpQueryServerContextInformation
-@ stub HttpQueryServiceConfiguration
+@ stdcall HttpQueryServiceConfiguration(ptr long ptr long ptr long ptr ptr)
@ stub HttpReadFragmentFromCache
@ stub HttpReceiveClientCertificate
@ stub HttpReceiveHttpRequest
@@ -44,7 +44,7 @@
@ stub HttpSetConfigGroupInformation
@ stub HttpSetControlChannelInformation
@ stub HttpSetServerContextInformation
-@ stub HttpSetServiceConfiguration
+@ stdcall HttpSetServiceConfiguration(ptr long ptr long ptr)
@ stub HttpShutdownAppPool
@ stub HttpShutdownFilter
@ stdcall HttpTerminate(long ptr)
diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c
index eb5662a..7b29a15 100644
--- a/dlls/httpapi/httpapi_main.c
+++ b/dlls/httpapi/httpapi_main.c
@@ -83,3 +83,77 @@ ULONG WINAPI HttpTerminate( ULONG flags, PVOID reserved )
FIXME( "(0x%x, %p): stub!\n", flags, reserved );
return NO_ERROR;
}
+
+/***********************************************************************
+ * HttpDeleteServiceConfiguration (HTTPAPI.@)
+ *
+ * Remove configuration record from HTTP Server API configuration store
+ *
+ * PARAMS
+ * handle [I] reserved, must be 0
+ * type [I] configuration record type
+ * config [I] buffer which contains configuration record information
+ * length [I] length of configuration record buffer
+ * overlapped [I] reserved, must be NULL
+ *
+ * RETURNS
+ * NO_ERROR if function succeeds, or error code if function fails
+ *
+ */
+ULONG WINAPI HttpDeleteServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID type,
+ PVOID config, ULONG length, LPOVERLAPPED overlapped )
+{
+ FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle, type, config, length, overlapped );
+ return NO_ERROR;
+}
+
+/***********************************************************************
+ * HttpQueryServiceConfiguration (HTTPAPI.@)
+ *
+ * Retrieves configuration records from HTTP Server API configuration store
+ *
+ * PARAMS
+ * handle [ I] reserved, must be 0
+ * type [ I] configuration records type
+ * query [ I] buffer which contains query data used to retrieve records
+ * query_len [ I] length of query buffer
+ * buffer [IO] buffer to store query results
+ * buffer_len [ I] length of output buffer
+ * data_len [ O] optional pointer to a buffer which receives query result length
+ * overlapped [ I] reserved, must be NULL
+ *
+ * RETURNS
+ * NO_ERROR if function succeeds, or error code if function fails
+ *
+ */
+ULONG WINAPI HttpQueryServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID type,
+ PVOID query, ULONG query_len, PVOID buffer, ULONG buffer_len,
+ PULONG data_len, LPOVERLAPPED overlapped )
+{
+ FIXME( "(%p, %d, %p, %d, %p, %d, %p, %p): stub!\n", handle, type, query, query_len,
+ buffer, buffer_len, data_len, overlapped );
+ return ERROR_FILE_NOT_FOUND;
+}
+
+/***********************************************************************
+ * HttpSetServiceConfiguration (HTTPAPI.@)
+ *
+ * Add configuration record to HTTP Server API configuration store
+ *
+ * PARAMS
+ * handle [I] reserved, must be 0
+ * type [I] configuration record type
+ * config [I] buffer which contains configuration record information
+ * length [I] length of configuration record buffer
+ * overlapped [I] reserved, must be NULL
+ *
+ * RETURNS
+ * NO_ERROR if function succeeds, or error code if function fails
+ *
+ */
+ULONG WINAPI HttpSetServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID type,
+ PVOID config, ULONG length, LPOVERLAPPED overlapped )
+{
+ FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle, type, config, length, overlapped );
+ return NO_ERROR;
+}
diff --git a/include/http.h b/include/http.h
index c0b7b66..2e116e5 100644
--- a/include/http.h
+++ b/include/http.h
@@ -41,9 +41,22 @@ typedef struct _HTTPAPI_VERSION
#define HTTP_INITIALIZE_SERVER 0x00000001
#define HTTP_INITIALIZE_CONFIG 0x00000002
+typedef enum _HTTP_SERVICE_CONFIG_ID
+{
+ HttpServiceConfigIPListenList,
+ HttpServiceConfigSSLCertInfo,
+ HttpServiceConfigUrlAclInfo,
+ HttpServiceConfigTimeout,
+ HttpServiceConfigMax
+} HTTP_SERVICE_CONFIG_ID, *PHTTP_SERVICE_CONFIG_ID;
+
ULONG WINAPI HttpInitialize(HTTPAPI_VERSION,ULONG,PVOID);
ULONG WINAPI HttpTerminate(ULONG,PVOID);
+ULONG WINAPI HttpDeleteServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
+ULONG WINAPI HttpQueryServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,PVOID,ULONG,PULONG,LPOVERLAPPED);
+ULONG WINAPI HttpSetServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
+
#ifdef __cplusplus
}
#endif
More information about the wine-cvs
mailing list