Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / OCTestApps / OCTestApp.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 #if ! defined (OCCLIENTTESTAPP__INCLUDED_)
7 #define OCCLIENTTESTAPP__INCLUDED_
8
9 #pragma once
10
11 #define ElementCount(a)     (sizeof(a) / sizeof(a[0]))
12
13 enum
14 {
15     IndentSpaces = 5,
16     MaxParams = 6,
17     MaxResultSize = 16,
18     MaxNameSize = 64,
19     ResultColumn = 80,                  // Start of 'Results' Column 
20     ResultIndex = ResultColumn + 1,     // 'Results' Column + 1
21     MaxFunctionNameSize = 64,
22 };
23
24 typedef void (Test_OCFunc)(int);
25
26 typedef struct
27 {
28     Test_OCFunc             *m_pTest;
29     char                    m_FunctionName[MaxNameSize];
30     char                    m_Result[MaxResultSize];
31
32 }FunctionStruct;
33
34
35 #endif
36