Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / include / OCApi.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 #ifndef __INTEL_OCAPI_H_2014_07_10
7  #define __INTEL_OCAPI_H_2014_07_10
8
9 #include <string>
10 #include <vector>
11
12 namespace OC {
13
14 class OCResource;
15
16 } // namespace OC
17
18 namespace OC { namespace OCReflect {
19
20 struct entity;
21
22 }} // namespace OC::OCReflect
23
24 namespace OC {
25
26  enum class OCPlatformStatus {
27         PlatformUp,
28         PlatformDown
29  };
30
31  enum class OCAdvertisementStatus{
32         None
33  };
34
35  typedef std::string URI;
36
37  enum class ServiceType
38  {
39          InProc,
40          OutOfProc
41  };
42
43  enum class ModeType
44  {
45          Server,
46          Client,
47          Both
48  };
49
50  struct PlatformConfig
51  {
52          ServiceType serviceType; // This will indicate whether it is InProc or OutOfProc
53          ModeType mode; // This will indicate whether we want to do server, client or both
54          std::string ipAddress; // This is the ipAddress of the server to connect to
55      uint16_t port; // Port of the server
56  };
57
58 } // namespace OC
59
60 #endif