-
Notifications
You must be signed in to change notification settings - Fork 30
/
Mmi.h
46 lines (38 loc) · 1 KB
/
Mmi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef MMI_H
#define MMI_H
typedef void* MMI_HANDLE;
// Plus any error codes from errno.h
#define MMI_OK 0
// Not null terminated, UTF-8, JSON formatted string
typedef char* MMI_JSON_STRING;
#ifdef __cplusplus
extern "C"
{
#endif
int MmiGetInfo(
const char* clientName,
MMI_JSON_STRING* payload,
int* payloadSizeBytes);
MMI_HANDLE MmiOpen(
const char* clientName,
const unsigned int maxPayloadSizeBytes);
void MmiClose(MMI_HANDLE clientSession);
int MmiSet(
MMI_HANDLE clientSession,
const char* componentName,
const char* objectName,
const MMI_JSON_STRING payload,
const int payloadSizeBytes);
int MmiGet(
MMI_HANDLE clientSession,
const char* componentName,
const char* objectName,
MMI_JSON_STRING* payload,
int* payloadSizeBytes);
void MmiFree(MMI_JSON_STRING payload);
#ifdef __cplusplus
}
#endif
#endif // MMI_H