1 /* Code generated by cmd/cgo; DO NOT EDIT. */
3 /* package interfaces/capi */
6 #line 1 "cgo-builtin-export-prolog"
8 #include <stddef.h> /* for ptrdiff_t below */
10 #ifndef GO_CGO_EXPORT_PROLOGUE_H
11 #define GO_CGO_EXPORT_PROLOGUE_H
13 #ifndef GO_CGO_GOSTRING_TYPEDEF
14 typedef struct { const char *p; ptrdiff_t n; } _GoString_;
19 /* Start of preamble from import "C" comments. */
23 /*******************************************************************************
24 * Copyright 2020 Samsung Electronics All Rights Reserved.
26 * Licensed under the Apache License, Version 2.0 (the "License");
27 * you may not use this file except in compliance with the License.
28 * You may obtain a copy of the License at
30 * http://www.apache.org/licenses/LICENSE-2.0
32 * Unless required by applicable law or agreed to in writing, software
33 * distributed under the License is distributed on an "AS IS" BASIS,
34 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 * See the License for the specific language governing permissions and
36 * limitations under the License.
38 *******************************************************************************/
42 #ifndef __ORCHESTRATION_H__
43 #define __ORCHESTRATION_H__
50 #define MAX_SVC_INFO_NUM 3
64 TargetInfo RemoteTargetInfo;
77 typedef char* (*identityGetterFunc)();
78 typedef char* (*keyGetterFunc)(char* id);
79 typedef int (*executeCb) (char* pkg_name, char* args);
81 static identityGetterFunc iGetter;
82 static keyGetterFunc kGetter;
83 static executeCb execCb;
85 static void setPSKHandler(identityGetterFunc ihandle, keyGetterFunc khandle){
90 static char* bridge_iGetter(){
94 static char* bridge_kGetter(char* id){
98 static void setExecCb(executeCb exechandle) {
102 static int bridge_execCb(char *pkg_name, char* args){
103 return execCb(pkg_name, args);
110 #endif // __ORCHESTRATION_H__
113 #line 1 "cgo-generated-wrapper"
116 /* End of preamble from import "C" comments. */
119 /* Start of boilerplate cgo prologue. */
120 #line 1 "cgo-gcc-export-header-prolog"
122 #ifndef GO_CGO_PROLOGUE_H
123 #define GO_CGO_PROLOGUE_H
125 typedef signed char GoInt8;
126 typedef unsigned char GoUint8;
127 typedef short GoInt16;
128 typedef unsigned short GoUint16;
130 typedef unsigned int GoUint32;
131 typedef long long GoInt64;
132 typedef unsigned long long GoUint64;
133 typedef GoInt32 GoInt;
134 typedef GoUint32 GoUint;
135 typedef __SIZE_TYPE__ GoUintptr;
136 typedef float GoFloat32;
137 typedef double GoFloat64;
138 typedef float _Complex GoComplex64;
139 typedef double _Complex GoComplex128;
142 static assertion to make sure the file is being used on architecture
143 at least with matching size of GoInt.
145 typedef char _check_for_32_bit_pointer_matching_GoInt[sizeof(void*)==32/8 ? 1:-1];
147 #ifndef GO_CGO_GOSTRING_TYPEDEF
148 typedef _GoString_ GoString;
151 typedef void *GoChan;
152 typedef struct { void *t; void *v; } GoInterface;
153 typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
157 /* End of boilerplate cgo prologue. */
164 extern int OrchestrationInit(executeCb p0);
166 extern ResponseService OrchestrationRequestService(char* p0, int p1, char* p2, RequestServiceInfo* p3, int p4);
168 extern ResponseService OrchestrationRequestServiceOnDevice(char* p0, int p1, char* p2, RequestServiceInfo* p3, char* p4, int p5);
170 extern DeviceList* OrchestrationGetDeviceList(char* p0, char* p1);
172 extern DeviceCapability* OrchestrationReadCapability(char* p0);
174 extern char* OrchestrationWriteCapability(char* p0);
176 extern void SetPSKHandler(identityGetterFunc p0, keyGetterFunc p1);
178 extern int PrintLog(char* p0);