BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
external
capi
CExternalContextAPI.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_C_EXTERNAL_CONTEXT_API_H__
18
#define __BUSBOY_C_EXTERNAL_CONTEXT_API_H__
19
20
typedef
struct
CExternalContextStruct
*
CExternalContextPtr
;
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
struct
CExternalContextMessageStruct
{
27
const
char
*
topic
;
28
const
char
*
contentType
;
29
const
char
*
content
;
30
};
31
32
typedef
struct
CExternalContextMessageStruct
CExternalContextMessage
;
33
38
typedef
void (*
CExternalLogFunctionPtr
) (
39
const
char
* level,
40
const
char
* message
41
);
42
46
typedef
void (*
CExternalProgressFunctionPtr
) (
47
float
percentDone,
48
const
char
* message
49
);
50
54
typedef
void (*
CExternalMessageFunctionPtr
) (
55
const
CExternalContextMessage
& message
56
);
57
58
62
typedef
void (*
CExternalFailureFunctionPtr
) (
63
const
char
* message
64
);
65
66
struct
CExternalContextCallbacksStruct
{
67
CExternalLogFunctionPtr
logCallback
;
68
CExternalProgressFunctionPtr
progressCallback
;
69
CExternalMessageFunctionPtr
messageCallback
;
70
CExternalFailureFunctionPtr
failureCallback
;
71
};
72
73
typedef
struct
CExternalContextCallbacksStruct
CExternalContextCallbacks
;
74
75
CExternalContextPtr
CExternalContext_newContext
(
76
const
CExternalContextCallbacks
& contextCallbacks
77
);
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
84
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.