svcctl: use offered/needed for buffer sizes as in spoolss.
[ira/wip.git] / librpc / gen_ndr / cli_svcctl.h
index 586e3fd5b9a39312a2dbd6bba66a9aa2a48dfe5a..60a7fdf019fd3240e144ca767a07b6dc903a02d2 100644 (file)
@@ -94,9 +94,9 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
                                              TALLOC_CTX *mem_ctx,
                                              struct policy_handle *service /* [in] [ref] */,
                                              uint32_t state /* [in]  */,
-                                             uint8_t *service_status /* [out] [ref,size_is(buf_size)] */,
-                                             uint32_t buf_size /* [in] [range(0,0x40000)] */,
-                                             uint32_t *bytes_needed /* [out] [ref,range(0,0x40000)] */,
+                                             uint8_t *service_status /* [out] [ref,size_is(offered)] */,
+                                             uint32_t offered /* [in] [range(0,0x40000)] */,
+                                             uint32_t *needed /* [out] [ref,range(0,0x40000)] */,
                                              uint32_t *services_returned /* [out] [ref,range(0,0x40000)] */,
                                              WERROR *werror);
 NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
@@ -104,9 +104,9 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
                                           struct policy_handle *handle /* [in] [ref] */,
                                           uint32_t type /* [in]  */,
                                           enum svcctl_ServiceState state /* [in]  */,
-                                          uint8_t *service /* [out] [ref,size_is(buf_size)] */,
-                                          uint32_t buf_size /* [in] [range(0,0x40000)] */,
-                                          uint32_t *bytes_needed /* [out] [ref,range(0,0x40000)] */,
+                                          uint8_t *service /* [out] [ref,size_is(offered)] */,
+                                          uint32_t offered /* [in] [range(0,0x40000)] */,
+                                          uint32_t *needed /* [out] [ref,range(0,0x40000)] */,
                                           uint32_t *services_returned /* [out] [ref,range(0,0x40000)] */,
                                           uint32_t *resume_handle /* [in,out] [unique] */,
                                           WERROR *werror);
@@ -128,15 +128,15 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
                                           TALLOC_CTX *mem_ctx,
                                           struct policy_handle *handle /* [in] [ref] */,
                                           struct QUERY_SERVICE_CONFIG *query /* [out] [ref] */,
-                                          uint32_t buf_size /* [in] [range(0,8192)] */,
-                                          uint32_t *bytes_needed /* [out] [ref,range(0,8192)] */,
+                                          uint32_t offered /* [in] [range(0,8192)] */,
+                                          uint32_t *needed /* [out] [ref,range(0,8192)] */,
                                           WERROR *werror);
 NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli,
                                               TALLOC_CTX *mem_ctx,
                                               struct policy_handle *handle /* [in] [ref] */,
-                                              uint32_t buf_size /* [in]  */,
+                                              uint32_t offered /* [in]  */,
                                               struct SERVICE_LOCK_STATUS *lock_status /* [out] [ref] */,
-                                              uint32_t *required_buf_size /* [out] [ref] */,
+                                              uint32_t *needed /* [out] [ref] */,
                                               WERROR *werror);
 NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli,
                                     TALLOC_CTX *mem_ctx,
@@ -200,8 +200,8 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli,
                                              struct policy_handle *service /* [in] [ref] */,
                                              uint32_t state /* [in]  */,
                                              struct ENUM_SERVICE_STATUSA *service_status /* [out] [unique] */,
-                                             uint32_t buf_size /* [in]  */,
-                                             uint32_t *bytes_needed /* [out] [ref] */,
+                                             uint32_t offered /* [in]  */,
+                                             uint32_t *needed /* [out] [ref] */,
                                              uint32_t *services_returned /* [out] [ref] */,
                                              WERROR *werror);
 NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
@@ -209,9 +209,9 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
                                           struct policy_handle *handle /* [in] [ref] */,
                                           uint32_t type /* [in]  */,
                                           enum svcctl_ServiceState state /* [in]  */,
-                                          uint32_t buf_size /* [in]  */,
-                                          uint8_t *service /* [out] [size_is(buf_size)] */,
-                                          uint32_t *bytes_needed /* [out] [ref] */,
+                                          uint32_t offered /* [in]  */,
+                                          uint8_t *service /* [out] [size_is(offered)] */,
+                                          uint32_t *needed /* [out] [ref] */,
                                           uint32_t *services_returned /* [out] [ref] */,
                                           uint32_t *resume_handle /* [in,out] [unique] */,
                                           WERROR *werror);
@@ -232,15 +232,15 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
                                           TALLOC_CTX *mem_ctx,
                                           struct policy_handle *handle /* [in] [ref] */,
                                           uint8_t *query /* [out]  */,
-                                          uint32_t buf_size /* [in]  */,
-                                          uint32_t *bytes_needed /* [out] [ref] */,
+                                          uint32_t offered /* [in]  */,
+                                          uint32_t *needed /* [out] [ref] */,
                                           WERROR *werror);
 NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli,
                                               TALLOC_CTX *mem_ctx,
                                               struct policy_handle *handle /* [in] [ref] */,
-                                              uint32_t buf_size /* [in]  */,
+                                              uint32_t offered /* [in]  */,
                                               struct SERVICE_LOCK_STATUS *lock_status /* [out] [ref] */,
-                                              uint32_t *required_buf_size /* [out] [ref] */,
+                                              uint32_t *needed /* [out] [ref] */,
                                               WERROR *werror);
 NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli,
                                     TALLOC_CTX *mem_ctx,
@@ -285,24 +285,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
                                            struct policy_handle *handle /* [in] [ref] */,
                                            enum svcctl_ConfigLevel info_level /* [in]  */,
                                            uint8_t *buffer /* [out]  */,
-                                           uint32_t buf_size /* [in]  */,
-                                           uint32_t *bytes_needed /* [out] [ref] */,
+                                           uint32_t offered /* [in]  */,
+                                           uint32_t *needed /* [out] [ref] */,
                                            WERROR *werror);
 NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
                                            TALLOC_CTX *mem_ctx,
                                            struct policy_handle *handle /* [in] [ref] */,
                                            enum svcctl_ConfigLevel info_level /* [in]  */,
-                                           uint8_t *buffer /* [out] [ref,size_is(buf_size)] */,
-                                           uint32_t buf_size /* [in] [range(0,8192)] */,
-                                           uint32_t *bytes_needed /* [out] [ref,range(0,8192)] */,
+                                           uint8_t *buffer /* [out] [ref,size_is(offered)] */,
+                                           uint32_t offered /* [in] [range(0,8192)] */,
+                                           uint32_t *needed /* [out] [ref,range(0,8192)] */,
                                            WERROR *werror);
 NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
                                            TALLOC_CTX *mem_ctx,
                                            struct policy_handle *handle /* [in] [ref] */,
                                            enum svcctl_StatusLevel info_level /* [in]  */,
-                                           uint8_t *buffer /* [out] [ref,size_is(buf_size)] */,
-                                           uint32_t buf_size /* [in] [range(0,8192)] */,
-                                           uint32_t *bytes_needed /* [out] [ref,range(0,8192)] */,
+                                           uint8_t *buffer /* [out] [ref,size_is(offered)] */,
+                                           uint32_t offered /* [in] [range(0,8192)] */,
+                                           uint32_t *needed /* [out] [ref,range(0,8192)] */,
                                            WERROR *werror);
 NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
                                      TALLOC_CTX *mem_ctx,
@@ -311,8 +311,8 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
                                      uint32_t type /* [in]  */,
                                      enum svcctl_ServiceState state /* [in]  */,
                                      uint8_t *services /* [out]  */,
-                                     uint32_t buf_size /* [in]  */,
-                                     uint32_t *bytes_needed /* [out] [ref] */,
+                                     uint32_t offered /* [in]  */,
+                                     uint32_t *needed /* [out] [ref] */,
                                      uint32_t *service_returned /* [out] [ref] */,
                                      uint32_t *resume_handle /* [in,out] [unique] */,
                                      const char **group_name /* [out] [ref,charset(UTF16)] */,
@@ -323,9 +323,9 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
                                      uint32_t info_level /* [in]  */,
                                      uint32_t type /* [in]  */,
                                      enum svcctl_ServiceState state /* [in]  */,
-                                     uint8_t *services /* [out] [ref,size_is(buf_size)] */,
-                                     uint32_t buf_size /* [in] [range(0,0x40000)] */,
-                                     uint32_t *bytes_needed /* [out] [ref,range(0,0x40000)] */,
+                                     uint8_t *services /* [out] [ref,size_is(offered)] */,
+                                     uint32_t offered /* [in] [range(0,0x40000)] */,
+                                     uint32_t *needed /* [out] [ref,range(0,0x40000)] */,
                                      uint32_t *service_returned /* [out] [ref,range(0,0x40000)] */,
                                      uint32_t *resume_handle /* [in,out] [unique,range(0,0x40000)] */,
                                      const char *group_name /* [in] [unique,charset(UTF16)] */,