(file) Return to wsman.h CVS log (file) (dir) Up to [OMI] / omi / wsman

 1 mike  1.1 /*
 2           **==============================================================================
 3           **
 4           ** Open Management Infrastructure (OMI)
 5           **
 6           ** Copyright (c) Microsoft Corporation
 7           **
 8 krisbash 1.3 ** Licensed under the Apache License, Version 2.0 (the "License"); you may not
 9              ** use this file except in compliance with the License. You may obtain a copy
10              ** of the License at
11              **
12              **     http://www.apache.org/licenses/LICENSE-2.0
13 mike     1.1 **
14              ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 krisbash 1.3 ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
16              ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
17              ** MERCHANTABLITY OR NON-INFRINGEMENT.
18 mike     1.1 **
19 krisbash 1.3 ** See the Apache 2 License for the specific language governing permissions
20 mike     1.1 ** and limitations under the License.
21              **
22              **==============================================================================
23              */
24              
25              #ifndef _omi_wsman_wsman_h
26              #define _omi_wsman_wsman_h
27              
28              #include "config.h"
29              #include <string.h>
30              #include <common.h>
31              #include <base/messages.h>
32              #include <sock/selector.h>
33 krisbash 1.3 #include <http/httpcommon.h>
34 mike     1.1 
35              BEGIN_EXTERNC
36              
37              typedef struct _WSMAN WSMAN;
38              
39              /* WSMAN options.
40                  mostly used for unit-testing; default values
41 krisbash 1.3     are hard-coded but can be overwritten by
42 mike     1.1     unit-tests/config modules   */
43              typedef struct _WSMAN_Options
44              {
45 krisbash 1.3     /* timeout for enumerate context expiration
46 mike     1.1      * (time between enum/pull/pull/.. requests)
47                   */
48                  MI_Uint64 timeoutEnumContextUsec;
49              
50                  /* Whether to trace to standard output or not */
51                  MI_Boolean enableTracing;
52              
53                  /* Whether to do HTTP-leavel tracing */
54                  MI_Boolean enableHTTPTracing;
55              }
56              WSMAN_Options;
57              
58              /* default WSMAN options */
59 krisbash 1.3 #define DEFAULT_WSMAN_OPTIONS  { (10 * 60 * 1000000), MI_FALSE, MI_FALSE }
60 mike     1.1 
61              MI_Result WSMAN_New_Listener(
62 krisbash 1.3     _Out_       WSMAN**                 self,
63                  _In_opt_    Selector*               selector,       /* optional, maybe NULL */
64                  _In_opt_    unsigned short          http_port,      /* 0 to disable */
65                  _In_opt_    unsigned short          https_port,     /* 0 to disable */
66                  _In_opt_z_  const char*             sslCipherSuite, /* NULL to disable */
67                  _In_        Server_SSL_Options      sslOptions,     /* 0 for default options */
68                  _In_        OpenCallback            callback,
69                  _In_        void*                   callbackData,
70                  _In_opt_    const WSMAN_Options*    options);
71 mike     1.1 
72              MI_Result WSMAN_Delete(
73                  WSMAN* self);
74              
75              MI_Result WSMAN_Run(
76                  WSMAN* self,
77                  MI_Uint64 timeoutUsec);
78              
79 krisbash 1.3 // Defined on server.c
80              void PrintProviderMsg( _In_ Message* msg);
81 mike     1.1 
82              END_EXTERNC
83              
84              #endif /* _omi_wsman_wsman_h */

ViewCVS 0.9.2