forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmessages.g.h
More file actions
351 lines (315 loc) · 12 KB
/
messages.g.h
File metadata and controls
351 lines (315 loc) · 12 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon, do not edit directly.
// See also: https://pub.dev/packages/pigeon
#ifndef PIGEON_MESSAGES_G_H_
#define PIGEON_MESSAGES_G_H_
#include <flutter_linux/flutter_linux.h>
G_BEGIN_DECLS
/**
* PigeonExamplePackageCode:
* PIGEON_EXAMPLE_PACKAGE_CODE_ONE:
* PIGEON_EXAMPLE_PACKAGE_CODE_TWO:
*
*/
typedef enum {
PIGEON_EXAMPLE_PACKAGE_CODE_ONE = 0,
PIGEON_EXAMPLE_PACKAGE_CODE_TWO = 1
} PigeonExamplePackageCode;
/**
* PigeonExamplePackageMessageData:
*
*/
G_DECLARE_FINAL_TYPE(PigeonExamplePackageMessageData,
pigeon_example_package_message_data,
PIGEON_EXAMPLE_PACKAGE, MESSAGE_DATA, GObject)
/**
* pigeon_example_package_message_data_new:
* name: field in this object.
* description: field in this object.
* code: field in this object.
* data: field in this object.
*
* Creates a new #MessageData object.
*
* Returns: a new #PigeonExamplePackageMessageData
*/
PigeonExamplePackageMessageData* pigeon_example_package_message_data_new(
const gchar* name, const gchar* description, PigeonExamplePackageCode code,
FlValue* data);
/**
* pigeon_example_package_message_data_get_name
* @object: a #PigeonExamplePackageMessageData.
*
* Gets the value of the name field of @object.
*
* Returns: the field value.
*/
const gchar* pigeon_example_package_message_data_get_name(
PigeonExamplePackageMessageData* object);
/**
* pigeon_example_package_message_data_get_description
* @object: a #PigeonExamplePackageMessageData.
*
* Gets the value of the description field of @object.
*
* Returns: the field value.
*/
const gchar* pigeon_example_package_message_data_get_description(
PigeonExamplePackageMessageData* object);
/**
* pigeon_example_package_message_data_get_code
* @object: a #PigeonExamplePackageMessageData.
*
* Gets the value of the code field of @object.
*
* Returns: the field value.
*/
PigeonExamplePackageCode pigeon_example_package_message_data_get_code(
PigeonExamplePackageMessageData* object);
/**
* pigeon_example_package_message_data_get_data
* @object: a #PigeonExamplePackageMessageData.
*
* Gets the value of the data field of @object.
*
* Returns: the field value.
*/
FlValue* pigeon_example_package_message_data_get_data(
PigeonExamplePackageMessageData* object);
G_DECLARE_FINAL_TYPE(PigeonExamplePackageExampleHostApiResponseHandle,
pigeon_example_package_example_host_api_response_handle,
PIGEON_EXAMPLE_PACKAGE, EXAMPLE_HOST_API_RESPONSE_HANDLE,
GObject)
G_DECLARE_FINAL_TYPE(
PigeonExamplePackageExampleHostApiGetHostLanguageResponse,
pigeon_example_package_example_host_api_get_host_language_response,
PIGEON_EXAMPLE_PACKAGE, EXAMPLE_HOST_API_GET_HOST_LANGUAGE_RESPONSE,
GObject)
/**
* pigeon_example_package_example_host_api_get_host_language_response_new:
*
* Creates a new response to ExampleHostApi.getHostLanguage.
*
* Returns: a new #PigeonExamplePackageExampleHostApiGetHostLanguageResponse
*/
PigeonExamplePackageExampleHostApiGetHostLanguageResponse*
pigeon_example_package_example_host_api_get_host_language_response_new(
const gchar* return_value);
/**
* pigeon_example_package_example_host_api_get_host_language_response_new_error:
* @code: error code.
* @message: error message.
* @details: (allow-none): error details or %NULL.
*
* Creates a new error response to ExampleHostApi.getHostLanguage.
*
* Returns: a new #PigeonExamplePackageExampleHostApiGetHostLanguageResponse
*/
PigeonExamplePackageExampleHostApiGetHostLanguageResponse*
pigeon_example_package_example_host_api_get_host_language_response_new_error(
const gchar* code, const gchar* message, FlValue* details);
G_DECLARE_FINAL_TYPE(PigeonExamplePackageExampleHostApiAddResponse,
pigeon_example_package_example_host_api_add_response,
PIGEON_EXAMPLE_PACKAGE, EXAMPLE_HOST_API_ADD_RESPONSE,
GObject)
/**
* pigeon_example_package_example_host_api_add_response_new:
*
* Creates a new response to ExampleHostApi.add.
*
* Returns: a new #PigeonExamplePackageExampleHostApiAddResponse
*/
PigeonExamplePackageExampleHostApiAddResponse*
pigeon_example_package_example_host_api_add_response_new(int64_t return_value);
/**
* pigeon_example_package_example_host_api_add_response_new_error:
* @code: error code.
* @message: error message.
* @details: (allow-none): error details or %NULL.
*
* Creates a new error response to ExampleHostApi.add.
*
* Returns: a new #PigeonExamplePackageExampleHostApiAddResponse
*/
PigeonExamplePackageExampleHostApiAddResponse*
pigeon_example_package_example_host_api_add_response_new_error(
const gchar* code, const gchar* message, FlValue* details);
G_DECLARE_FINAL_TYPE(PigeonExamplePackageExampleHostApi,
pigeon_example_package_example_host_api,
PIGEON_EXAMPLE_PACKAGE, EXAMPLE_HOST_API, GObject)
/**
* PigeonExamplePackageExampleHostApiVTable:
*
* Table of functions exposed by ExampleHostApi to be implemented by the API
* provider.
*/
typedef struct {
PigeonExamplePackageExampleHostApiGetHostLanguageResponse* (
*get_host_language)(PigeonExamplePackageExampleHostApi* api,
gpointer user_data);
PigeonExamplePackageExampleHostApiAddResponse* (*add)(
PigeonExamplePackageExampleHostApi* api, int64_t a, int64_t b,
gpointer user_data);
void (*send_message)(
PigeonExamplePackageExampleHostApi* api,
PigeonExamplePackageMessageData* message,
PigeonExamplePackageExampleHostApiResponseHandle* response_handle,
gpointer user_data);
} PigeonExamplePackageExampleHostApiVTable;
/**
* pigeon_example_package_example_host_api_new:
*
* @messenger: an #FlBinaryMessenger.
* @suffix: (allow-none): a suffix to add to the API or %NULL for none.
* @vtable: implementations of the methods in this API.
* @user_data: (closure): user data to pass to the functions in @vtable.
* @user_data_free_func: (allow-none): a function which gets called to free
* @user_data, or %NULL.
*
* Creates an object to implement the ExampleHostApi API.
*
* Returns: a new #PigeonExamplePackageExampleHostApi
*/
PigeonExamplePackageExampleHostApi* pigeon_example_package_example_host_api_new(
FlBinaryMessenger* messenger, const gchar* suffix,
const PigeonExamplePackageExampleHostApiVTable* vtable, gpointer user_data,
GDestroyNotify user_data_free_func);
/**
* pigeon_example_package_example_host_api_respond_send_message:
* @api: a #PigeonExamplePackageExampleHostApi.
* @response_handle: a #PigeonExamplePackageExampleHostApiResponseHandle.
* @return_value: location to write the value returned by this method.
*
* Responds to ExampleHostApi.sendMessage.
*/
void pigeon_example_package_example_host_api_respond_send_message(
PigeonExamplePackageExampleHostApi* api,
PigeonExamplePackageExampleHostApiResponseHandle* response_handle,
gboolean return_value);
/**
* pigeon_example_package_example_host_api_respond_error_send_message:
* @api: a #PigeonExamplePackageExampleHostApi.
* @response_handle: a #PigeonExamplePackageExampleHostApiResponseHandle.
* @code: error code.
* @message: error message.
* @details: (allow-none): error details or %NULL.
*
* Responds with an error to ExampleHostApi.sendMessage.
*/
void pigeon_example_package_example_host_api_respond_error_send_message(
PigeonExamplePackageExampleHostApi* api,
PigeonExamplePackageExampleHostApiResponseHandle* response_handle,
const gchar* code, const gchar* message, FlValue* details);
G_DECLARE_FINAL_TYPE(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse,
pigeon_example_package_message_flutter_api_flutter_method_response,
PIGEON_EXAMPLE_PACKAGE, MESSAGE_FLUTTER_API_FLUTTER_METHOD_RESPONSE,
GObject)
/**
* pigeon_example_package_message_flutter_api_flutter_method_response_is_error:
* @response: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse.
*
* Checks if a response to MessageFlutterApi.flutterMethod is an error.
*
* Returns: a %TRUE if this response is an error.
*/
gboolean
pigeon_example_package_message_flutter_api_flutter_method_response_is_error(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_error_code:
* @response: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse.
*
* Get the error code for this response.
*
* Returns: an error code or %NULL if not an error.
*/
const gchar*
pigeon_example_package_message_flutter_api_flutter_method_response_get_error_code(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_error_message:
* @response: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse.
*
* Get the error message for this response.
*
* Returns: an error message.
*/
const gchar*
pigeon_example_package_message_flutter_api_flutter_method_response_get_error_message(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_error_details:
* @response: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse.
*
* Get the error details for this response.
*
* Returns: (allow-none): an error details or %NULL.
*/
FlValue*
pigeon_example_package_message_flutter_api_flutter_method_response_get_error_details(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
/**
* pigeon_example_package_message_flutter_api_flutter_method_response_get_return_value:
* @response: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse.
*
* Get the return value for this response.
*
* Returns: a return value.
*/
const gchar*
pigeon_example_package_message_flutter_api_flutter_method_response_get_return_value(
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse* response);
/**
* PigeonExamplePackageMessageFlutterApi:
*
*/
G_DECLARE_FINAL_TYPE(PigeonExamplePackageMessageFlutterApi,
pigeon_example_package_message_flutter_api,
PIGEON_EXAMPLE_PACKAGE, MESSAGE_FLUTTER_API, GObject)
/**
* pigeon_example_package_message_flutter_api_new:
* @messenger: an #FlBinaryMessenger.
* @suffix: (allow-none): a suffix to add to the API or %NULL for none.
*
* Creates a new object to access the MessageFlutterApi API.
*
* Returns: a new #PigeonExamplePackageMessageFlutterApi
*/
PigeonExamplePackageMessageFlutterApi*
pigeon_example_package_message_flutter_api_new(FlBinaryMessenger* messenger,
const gchar* suffix);
/**
* pigeon_example_package_message_flutter_api_flutter_method:
* @api: a #PigeonExamplePackageMessageFlutterApi.
* @a_string: (allow-none): parameter for this method.
* @cancellable: (allow-none): a #GCancellable or %NULL.
* @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when
* the call is complete or %NULL to ignore the response.
* @user_data: (closure): user data to pass to @callback.
*
*/
void pigeon_example_package_message_flutter_api_flutter_method(
PigeonExamplePackageMessageFlutterApi* api, const gchar* a_string,
GCancellable* cancellable, GAsyncReadyCallback callback,
gpointer user_data);
/**
* pigeon_example_package_message_flutter_api_flutter_method_finish:
* @api: a #className.
* @result: a #GAsyncResult.
* @error: (allow-none): #GError location to store the error occurring, or %NULL
* to ignore.
*
* Completes a pigeon_example_package_message_flutter_api_flutter_method() call.
*
* Returns: a #PigeonExamplePackageMessageFlutterApiFlutterMethodResponse or
* %NULL on error.
*/
PigeonExamplePackageMessageFlutterApiFlutterMethodResponse*
pigeon_example_package_message_flutter_api_flutter_method_finish(
PigeonExamplePackageMessageFlutterApi* api, GAsyncResult* result,
GError** error);
G_END_DECLS
#endif // PIGEON_MESSAGES_G_H_