Debian Codegraph @

src/libmbim-glib/mbim-uuid.h

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 /*
4 * libmbim-glib -- GLib/GIO based library to control MBIM devices
5 *
6 * Copyright (C) 2013 - 2014 Aleksander Morgado <[email protected]>
7 * Copyright (C) 2022 Intel Corporation
8 */
9
10 #ifndef _LIBMBIM_GLIB_MBIM_UUID_H_
11 #define _LIBMBIM_GLIB_MBIM_UUID_H_
12
13 #if !defined (__LIBMBIM_GLIB_H_INSIDE__) && !defined (LIBMBIM_GLIB_COMPILATION)
14 #error "Only <libmbim-glib.h> can be included directly."
15 #endif
16
17 #include <glib.h>
18
19 G_BEGIN_DECLS
20
21 /**
22 * SECTION: mbim-uuid
23 * @title: UUIDs
24 * @short_description: Generic UUID handling routines.
25 *
26 * This section defines the data type for unique identifiers.
27 */
28
29 /*****************************************************************************/
30
31 /**
32 * MbimUuid:
33 *
34 * A UUID as defined in MBIM.
35 *
36 * Since: 1.0
37 */
38 typedef struct _MbimUuid MbimUuid;
39 #define MBIM_PACKED __attribute__((__packed__))
40 struct MBIM_PACKED _MbimUuid {
41 guint8 a[4];
42 guint8 b[2];
43 guint8 c[2];
44 guint8 d[2];
45 guint8 e[6];
46 };
47 #undef MBIM_PACKED
48
49 /**
50 * mbim_uuid_cmp:
51 * @a: a #MbimUuid.
52 * @b: a #MbimUuid.
53 *
54 * Compare two %MbimUuid values.
55 *
56 * Returns: %TRUE if @a and @b are equal, %FALSE otherwise.
57 *
58 * Since: 1.0
59 */
60 gboolean mbim_uuid_cmp (const MbimUuid *a,
61 const MbimUuid *b);
62
63 /**
64 * mbim_uuid_get_printable:
65 * @uuid: a #MbimUuid.
66 *
67 * Get a string with the UUID.
68 *
69 * Returns: (transfer full): a newly allocated string, which should be freed with g_free().
70 *
71 * Since: 1.0
72 */
73 gchar *mbim_uuid_get_printable (const MbimUuid *uuid);
74
75 /**
76 * mbim_uuid_from_printable:
77 * @str: a MBIM UUID.
78 * @uuid: pointer to the target #MbimUuid.
79 *
80 * Fills in @uuid from the printable representation give in @str.
81 *
82 * Only ccepts @str written with dashes separating items, e.g.:
83 * a289cc33-bcbb-8b4f-b6b0-133ec2aae6df
84 *
85 * Returns: %TRUE if @uuid was correctly set, %FALSE otherwise.
86 *
87 * Since: 1.8
88 */
89 gboolean mbim_uuid_from_printable (const gchar *str,
90 MbimUuid *uuid);
91
92 /*****************************************************************************/
93
94 /**
95 * MbimService:
96 * @MBIM_SERVICE_INVALID: Invalid service.
97 * @MBIM_SERVICE_BASIC_CONNECT: Basic connectivity service.
98 * @MBIM_SERVICE_SMS: SMS messaging service.
99 * @MBIM_SERVICE_USSD: USSD service.
100 * @MBIM_SERVICE_PHONEBOOK: Phonebook service.
101 * @MBIM_SERVICE_STK: SIM toolkit service.
102 * @MBIM_SERVICE_AUTH: Authentication service.
103 * @MBIM_SERVICE_DSS: Device Service Stream service.
104 * @MBIM_SERVICE_MS_FIRMWARE_ID: Microsoft Firmware ID service. Since 1.8.
105 * @MBIM_SERVICE_MS_HOST_SHUTDOWN: Microsoft Host Shutdown service. Since 1.8.
106 * @MBIM_SERVICE_PROXY_CONTROL: Proxy Control service. Since 1.10.
107 * @MBIM_SERVICE_QMI: QMI-over-MBIM service. Since 1.14.
108 * @MBIM_SERVICE_ATDS: ATT Device service. Since 1.16.
109 * @MBIM_SERVICE_INTEL_FIRMWARE_UPDATE: Intel firmware update service. Since 1.16.
110 * @MBIM_SERVICE_MS_BASIC_CONNECT_EXTENSIONS: Microsoft basic connectivity extensions service. Since 1.18.
111 * @MBIM_SERVICE_MS_SAR: Microsoft SAR service. Since 1.26.
112 * @MBIM_SERVICE_QDU: QDU firmware update service. Since 1.26.
113 * @MBIM_SERVICE_MS_UICC_LOW_LEVEL_ACCESS: Microsoft UICC Low Level Access service. Since 1.26.
114 * @MBIM_SERVICE_QUECTEL: Quectel specific operations. Since 1.26.2.
115 * @MBIM_SERVICE_INTEL_THERMAL_RF: Intel thermal rf related commands. Since 1.28
116 * @MBIM_SERVICE_MS_VOICE_EXTENSIONS: Microsoft Voice extensions service. Since 1.28.
117 * @MBIM_SERVICE_INTEL_MUTUAL_AUTHENTICATION: Intel mutual authentication commands. Since 1.30.
118 * @MBIM_SERVICE_INTEL_TOOLS: Intel tools service. Since 1.30.
119 * @MBIM_SERVICE_GOOGLE: Google specific service. Since 1.30
120 * @MBIM_SERVICE_FIBOCOM: Fibocom specific service. Since 1.32.
121 * @MBIM_SERVICE_COMPAL: Compal specific service. Since 1.32.
122 * @MBIM_SERVICE_INTEL_AT_TUNNEL: Intel at tunnel service. Since 1.34.
123 * @MBIM_SERVICE_LAST: Internal value.
124 *
125 * Enumeration of the generic MBIM services.
126 *
127 * Since: 1.0
128 */
129 typedef enum { /*< since=1.0 >*/
130 MBIM_SERVICE_INVALID = 0,
131 MBIM_SERVICE_BASIC_CONNECT = 1,
132 MBIM_SERVICE_SMS = 2,
133 MBIM_SERVICE_USSD = 3,
134 MBIM_SERVICE_PHONEBOOK = 4,
135 MBIM_SERVICE_STK = 5,
136 MBIM_SERVICE_AUTH = 6,
137 MBIM_SERVICE_DSS = 7,
138 MBIM_SERVICE_MS_FIRMWARE_ID = 8,
139 MBIM_SERVICE_MS_HOST_SHUTDOWN = 9,
140 MBIM_SERVICE_PROXY_CONTROL = 10,
141 MBIM_SERVICE_QMI = 11,
142 MBIM_SERVICE_ATDS = 12,
143 MBIM_SERVICE_INTEL_FIRMWARE_UPDATE = 13,
144 MBIM_SERVICE_MS_BASIC_CONNECT_EXTENSIONS = 14,
145 MBIM_SERVICE_MS_SAR = 15,
146 MBIM_SERVICE_QDU = 16,
147 MBIM_SERVICE_MS_UICC_LOW_LEVEL_ACCESS = 17,
148 MBIM_SERVICE_QUECTEL = 18,
149 MBIM_SERVICE_INTEL_THERMAL_RF = 19,
150 MBIM_SERVICE_MS_VOICE_EXTENSIONS = 20,
151 MBIM_SERVICE_INTEL_MUTUAL_AUTHENTICATION = 21,
152 MBIM_SERVICE_INTEL_TOOLS = 22,
153 MBIM_SERVICE_GOOGLE = 23,
154 MBIM_SERVICE_FIBOCOM = 24,
155 MBIM_SERVICE_COMPAL = 25,
156 MBIM_SERVICE_INTEL_AT_TUNNEL = 26,
157 #if defined LIBMBIM_GLIB_COMPILATION
158 MBIM_SERVICE_LAST /*< skip >*/
159 #endif
160 } MbimService;
161
162 /**
163 * MBIM_UUID_INVALID:
164 *
165 * Get the UUID of the %MBIM_SERVICE_INVALID service.
166 *
167 * Returns: (transfer none): a #MbimUuid.
168 *
169 * Since: 1.0
170 */
171 #define MBIM_UUID_INVALID mbim_uuid_from_service (MBIM_SERVICE_INVALID)
172
173 /**
174 * MBIM_UUID_BASIC_CONNECT:
175 *
176 * Get the UUID of the %MBIM_SERVICE_BASIC_CONNECT service.
177 *
178 * Returns: (transfer none): a #MbimUuid.
179 *
180 * Since: 1.0
181 */
182 #define MBIM_UUID_BASIC_CONNECT mbim_uuid_from_service (MBIM_SERVICE_BASIC_CONNECT)
183
184 /**
185 * MBIM_UUID_SMS:
186 *
187 * Get the UUID of the %MBIM_SERVICE_SMS service.
188 *
189 * Returns: (transfer none): a #MbimUuid.
190 *
191 * Since: 1.0
192 */
193 #define MBIM_UUID_SMS mbim_uuid_from_service (MBIM_SERVICE_SMS)
194
195 /**
196 * MBIM_UUID_USSD:
197 *
198 * Get the UUID of the %MBIM_SERVICE_USSD service.
199 *
200 * Returns: (transfer none): a #MbimUuid.
201 *
202 * Since: 1.0
203 */
204 #define MBIM_UUID_USSD mbim_uuid_from_service (MBIM_SERVICE_USSD)
205
206 /**
207 * MBIM_UUID_PHONEBOOK:
208 *
209 * Get the UUID of the %MBIM_SERVICE_PHONEBOOK service.
210 *
211 * Returns: (transfer none): a #MbimUuid.
212 *
213 * Since: 1.0
214 */
215 #define MBIM_UUID_PHONEBOOK mbim_uuid_from_service (MBIM_SERVICE_PHONEBOOK)
216
217 /**
218 * MBIM_UUID_STK:
219 *
220 * Get the UUID of the %MBIM_SERVICE_STK service.
221 *
222 * Returns: (transfer none): a #MbimUuid.
223 *
224 * Since: 1.0
225 */
226 #define MBIM_UUID_STK mbim_uuid_from_service (MBIM_SERVICE_STK)
227
228 /**
229 * MBIM_UUID_AUTH:
230 *
231 * Get the UUID of the %MBIM_SERVICE_AUTH service.
232 *
233 * Returns: (transfer none): a #MbimUuid.
234 *
235 * Since: 1.0
236 */
237 #define MBIM_UUID_AUTH mbim_uuid_from_service (MBIM_SERVICE_AUTH)
238
239 /**
240 * MBIM_UUID_DSS:
241 *
242 * Get the UUID of the %MBIM_SERVICE_DSS service.
243 *
244 * Returns: (transfer none): a #MbimUuid.
245 *
246 * Since: 1.0
247 */
248 #define MBIM_UUID_DSS mbim_uuid_from_service (MBIM_SERVICE_DSS)
249
250 /**
251 * MBIM_UUID_MS_FIRMWARE_ID:
252 *
253 * Get the UUID of the %MBIM_SERVICE_MS_FIRMWARE_ID service.
254 *
255 * Returns: (transfer none): a #MbimUuid.
256 *
257 * Since: 1.8
258 */
259 #define MBIM_UUID_MS_FIRMWARE_ID mbim_uuid_from_service (MBIM_SERVICE_MS_FIRMWARE_ID)
260
261 /**
262 * MBIM_UUID_MS_HOST_SHUTDOWN:
263 *
264 * Get the UUID of the %MBIM_SERVICE_MS_HOST_SHUTDOWN service.
265 *
266 * Returns: (transfer none): a #MbimUuid.
267 *
268 * Since: 1.8
269 */
270 #define MBIM_UUID_MS_HOST_SHUTDOWN mbim_uuid_from_service (MBIM_SERVICE_MS_HOST_SHUTDOWN)
271
272 /**
273 * MBIM_UUID_MS_SAR:
274 *
275 * Get the UUID of the %MBIM_SERVICE_MS_SAR service.
276 *
277 * Returns: (transfer none): a #MbimUuid.
278 *
279 * Since: 1.26
280 */
281 #define MBIM_UUID_MS_SAR mbim_uuid_from_service (MBIM_SERVICE_MS_SAR)
282
283 /**
284 * MBIM_UUID_PROXY_CONTROL:
285 *
286 * Get the UUID of the %MBIM_SERVICE_PROXY_CONTROL service.
287 *
288 * Returns: (transfer none): a #MbimUuid.
289 *
290 * Since: 1.10
291 */
292 #define MBIM_UUID_PROXY_CONTROL mbim_uuid_from_service (MBIM_SERVICE_PROXY_CONTROL)
293
294 /**
295 * MBIM_UUID_QMI:
296 *
297 * Get the UUID of the %MBIM_SERVICE_QMI service.
298 *
299 * Returns: (transfer none): a #MbimUuid.
300 *
301 * Since: 1.14
302 */
303 #define MBIM_UUID_QMI mbim_uuid_from_service (MBIM_SERVICE_QMI)
304
305 /**
306 * MBIM_UUID_ATDS:
307 *
308 * Get the UUID of the %MBIM_SERVICE_ATDS service.
309 *
310 * Returns: (transfer none): a #MbimUuid.
311 *
312 * Since: 1.16
313 */
314 #define MBIM_UUID_ATDS mbim_uuid_from_service (MBIM_SERVICE_ATDS)
315
316 /**
317 * MBIM_UUID_INTEL_FIRMWARE_UPDATE:
318 *
319 * Get the UUID of the %MBIM_SERVICE_INTEL_FIRMWARE_UPDATE service.
320 *
321 * Returns: (transfer none): a #MbimUuid.
322 *
323 * Since: 1.16
324 */
325 #define MBIM_UUID_INTEL_FIRMWARE_UPDATE mbim_uuid_from_service (MBIM_SERVICE_INTEL_FIRMWARE_UPDATE)
326
327 /**
328 * MBIM_UUID_QDU:
329 *
330 * Get the UUID of the %MBIM_SERVICE_QDU service.
331 *
332 * Returns: (transfer none): a #MbimUuid.
333 *
334 * Since: 1.26
335 */
336 #define MBIM_UUID_QDU mbim_uuid_from_service (MBIM_SERVICE_QDU)
337
338 /**
339 * MBIM_UUID_MS_BASIC_CONNECT_EXTENSIONS:
340 *
341 * Get the UUID of the %MBIM_SERVICE_MS_BASIC_CONNECT_EXTENSIONS service.
342 *
343 * Returns: (transfer none): a #MbimUuid.
344 *
345 * Since: 1.18
346 */
347 #define MBIM_UUID_MS_BASIC_CONNECT_EXTENSIONS mbim_uuid_from_service (MBIM_SERVICE_MS_BASIC_CONNECT_EXTENSIONS)
348
349 /**
350 * MBIM_UUID_MS_UICC_LOW_LEVEL_ACCESS:
351 *
352 * Get the UUID of the %MBIM_SERVICE_MS_UICC_LOW_LEVEL_ACCESS service.
353 *
354 * Returns: (transfer none): a #MbimUuid.
355 *
356 * Since: 1.26
357 */
358 #define MBIM_UUID_MS_UICC_LOW_LEVEL_ACCESS mbim_uuid_from_service (MBIM_SERVICE_MS_UICC_LOW_LEVEL_ACCESS)
359
360 /**
361 * MBIM_UUID_QUECTEL:
362 *
363 * Get the UUID of the %MBIM_SERVICE_QUECTEL service.
364 *
365 * Returns: (transfer none): a #MbimUuid.
366 *
367 * Since: 1.26.2
368 */
369 #define MBIM_UUID_QUECTEL mbim_uuid_from_service (MBIM_SERVICE_QUECTEL)
370
371 /**
372 * MBIM_UUID_INTEL_THERMAL_RF:
373 *
374 * Get the UUID of the %MBIM_SERVICE_INTEL_THERMAL_RF service.
375 *
376 * Returns: (transfer none): a #MbimUuid.
377 *
378 * Since: 1.28
379 */
380 #define MBIM_UUID_INTEL_THERMAL_RF mbim_uuid_from_service (MBIM_SERVICE_INTEL_THERMAL_RF)
381
382 /**
383 * MBIM_UUID_MS_VOICE_EXTENSIONS:
384 *
385 * Get the UUID of the %MBIM_SERVICE_MS_VOICE_EXTENSIONS service.
386 *
387 * Returns: (transfer none): a #MbimUuid.
388 *
389 * Since: 1.28
390 */
391 #define MBIM_UUID_MS_VOICE_EXTENSIONS mbim_uuid_from_service (MBIM_SERVICE_MS_VOICE_EXTENSIONS)
392
393 /**
394 * MBIM_UUID_INTEL_MUTUAL_AUTHENTICATION:
395 *
396 * Get the UUID of the %MBIM_SERVICE_INTEL_MUTUAL_AUTHENTICATION service.
397 *
398 * Returns: (transfer none): a #MbimUuid.
399 *
400 * Since: 1.30
401 */
402 #define MBIM_UUID_INTEL_MUTUAL_AUTHENTICATION mbim_uuid_from_service (MBIM_SERVICE_INTEL_MUTUAL_AUTHENTICATION)
403
404 /**
405 * MBIM_UUID_INTEL_TOOLS:
406 *
407 * Get the UUID of the %MBIM_SERVICE_INTEL_TOOLS service.
408 *
409 * Returns: (transfer none): a #MbimUuid.
410 *
411 * Since: 1.30
412 */
413 #define MBIM_UUID_INTEL_TOOLS mbim_uuid_from_service (MBIM_SERVICE_INTEL_TOOLS)
414
415 /**
416 * MBIM_UUID_GOOGLE:
417 *
418 * Get the UUID of the %MBIM_SERVICE_GOOGLE service.
419 *
420 * Returns: (transfer none): a #MbimUuid.
421 *
422 * Since: 1.30
423 */
424 #define MBIM_UUID_GOOGLE mbim_uuid_from_service (MBIM_SERVICE_GOOGLE)
425
426 /**
427 * MBIM_UUID_FIBOCOM:
428 *
429 * Get the UUID of the %MBIM_SERVICE_FIBOCOM service.
430 *
431 * Returns: (transfer none): a #MbimUuid.
432 *
433 * Since: 1.32
434 */
435 #define MBIM_UUID_FIBOCOM mbim_uuid_from_service (MBIM_SERVICE_FIBOCOM)
436
437
438 /**
439 * MBIM_UUID_COMPAL:
440 *
441 * Get the UUID of the %MBIM_SERVICE_COMPAL service.
442 *
443 * Returns: (transfer none): a #MbimUuid.
444 *
445 * Since: 1.32
446 */
447 #define MBIM_UUID_COMPAL mbim_uuid_from_service (MBIM_SERVICE_COMPAL)
448
449 /**
450 * MBIM_UUID_INTEL_AT_TUNNEL:
451 *
452 * Get the UUID of the %MBIM_SERVICE_INTEL_AT_TUNNEL service.
453 *
454 * Returns: (transfer none): a #MbimUuid.
455 *
456 * Since: 1.34
457 */
458 #define MBIM_UUID_INTEL_AT_TUNNEL mbim_uuid_from_service (MBIM_SERVICE_INTEL_AT_TUNNEL)
459
460 /**
461 * mbim_service_lookup_name:
462 * @service: a MbimService or custom service.
463 *
464 * Gets the nickname string for the @service.
465 *
466 * As opposed to mbim_service_get_string(), this methods takes into account
467 * custom services that may have been registered by the user.
468 *
469 * Returns: (transfer none): a string with the nickname, or %NULL if not found. Do not free the returned value.
470 *
471 * Since: 1.10
472 */
473 const gchar *mbim_service_lookup_name (guint service);
474
475 /**
476 * mbim_register_custom_service:
477 * @uuid: MbimUuid structure corresponding to service
478 * @nickname: a printable name for service
479 *
480 * Register a custom service
481 *
482 * Returns: TRUE if service has been registered, FALSE otherwise.
483 *
484 * Since: 1.10
485 */
486 guint mbim_register_custom_service (const MbimUuid *uuid,
487 const gchar *nickname);
488
489 /**
490 * mbim_unregister_custom_service:
491 * @id: ID of the service to unregister.MbimUuid structure corresponding to service
492 *
493 * Unregister a custom service.
494 *
495 * Returns: TRUE if service has been unregistered, FALSE otherwise.
496 *
497 * Since: 1.10
498 */
499 gboolean mbim_unregister_custom_service (const guint id);
500
501 /**
502 * mbim_service_id_is_custom:
503 * @id: ID of the service
504 *
505 * Checks whether @id is a custom or standard service.
506 *
507 * Returns: TRUE if service is custom, FALSE otherwise.
508 *
509 * Since: 1.10
510 */
511 gboolean mbim_service_id_is_custom (const guint id);
512
513 /**
514 * mbim_uuid_from_service:
515 * @service: a #MbimService.
516 *
517 * Get the UUID corresponding to @service.
518 *
519 * The @service needs to be either a generic one (including #MBIM_SERVICE_INVALID)
520 * or a custom registered one.
521 *
522 * Returns: (transfer none): a #MbimUuid.
523 *
524 * Since: 1.0
525 */
526 const MbimUuid *mbim_uuid_from_service (MbimService service);
527
528 /**
529 * mbim_uuid_to_service:
530 * @uuid: a #MbimUuid.
531 *
532 * Get the service corresponding to @uuid.
533 *
534 * Returns: a #MbimService.
535 *
536 * Since: 1.0
537 */
538 MbimService mbim_uuid_to_service (const MbimUuid *uuid);
539
540 /*****************************************************************************/
541
542 /**
543 * MbimContextType:
544 * @MBIM_CONTEXT_TYPE_INVALID: Invalid context type.
545 * @MBIM_CONTEXT_TYPE_NONE: Context not yet provisioned.
546 * @MBIM_CONTEXT_TYPE_INTERNET: Context representing a connection to the
547 * Internet.
548 * @MBIM_CONTEXT_TYPE_VPN: Context representing a connection to a a private
549 * network (e.g. VPN to a corporate network).
550 * @MBIM_CONTEXT_TYPE_VOICE: Context representing a connection to a VoIP service.
551 * @MBIM_CONTEXT_TYPE_VIDEO_SHARE: Context representing a connection to a video
552 * sharing service.
553 * @MBIM_CONTEXT_TYPE_PURCHASE: Context representing a connection to an
554 * OTA (over-the-air) activation site.
555 * @MBIM_CONTEXT_TYPE_IMS: Context representing a connection to IMS.
556 * @MBIM_CONTEXT_TYPE_MMS: Context representing a connection to MMS.
557 * @MBIM_CONTEXT_TYPE_LOCAL: Context representing a connection which is
558 * terminated at the device. No IP traffic sent over the air.
559 * @MBIM_CONTEXT_TYPE_ADMIN: Context used for administrative purposes, such as
560 * device management (MS MBIMEx). Since 1.28.
561 * @MBIM_CONTEXT_TYPE_APP: Context used for certain applications allowed by
562 * mobile operators (MS MBIMEx). Since 1.28.
563 * @MBIM_CONTEXT_TYPE_XCAP: Context used for XCAP provisioning on IMS services
564 * (MS MBIMEx). Since 1.28.
565 * @MBIM_CONTEXT_TYPE_TETHERING: Context used for mobile hotspot tethering
566 * (MS MBIMEx). Since 1.28.
567 * @MBIM_CONTEXT_TYPE_EMERGENCY_CALLING: Context used for IMS emergency calling
568 * (MS MBIMEx). Since 1.28.
569 *
570 * Enumeration of the generic MBIM context types.
571 *
572 * Since: 1.0
573 */
574 typedef enum { /*< since=1.0 >*/
575 MBIM_CONTEXT_TYPE_INVALID = 0,
576 MBIM_CONTEXT_TYPE_NONE = 1,
577 MBIM_CONTEXT_TYPE_INTERNET = 2,
578 MBIM_CONTEXT_TYPE_VPN = 3,
579 MBIM_CONTEXT_TYPE_VOICE = 4,
580 MBIM_CONTEXT_TYPE_VIDEO_SHARE = 5,
581 MBIM_CONTEXT_TYPE_PURCHASE = 6,
582 MBIM_CONTEXT_TYPE_IMS = 7,
583 MBIM_CONTEXT_TYPE_MMS = 8,
584 MBIM_CONTEXT_TYPE_LOCAL = 9,
585 MBIM_CONTEXT_TYPE_ADMIN = 10,
586 MBIM_CONTEXT_TYPE_APP = 11,
587 MBIM_CONTEXT_TYPE_XCAP = 12,
588 MBIM_CONTEXT_TYPE_TETHERING = 13,
589 MBIM_CONTEXT_TYPE_EMERGENCY_CALLING = 14,
590 } MbimContextType;
591
592 /**
593 * mbim_uuid_from_context_type:
594 * @context_type: a #MbimContextType.
595 *
596 * Get the UUID corresponding to @context_type.
597 *
598 * Returns: (transfer none): a #MbimUuid.
599 *
600 * Since: 1.0
601 */
602 const MbimUuid *mbim_uuid_from_context_type (MbimContextType context_type);
603
604 /**
605 * mbim_uuid_to_context_type:
606 * @uuid: a #MbimUuid.
607 *
608 * Get the context type corresponding to @uuid.
609 *
610 * Returns: a #MbimContextType.
611 *
612 * Since: 1.0
613 */
614 MbimContextType mbim_uuid_to_context_type (const MbimUuid *uuid);
615
616 G_END_DECLS
617
618 #endif /* _LIBMBIM_GLIB_MBIM_UUID_H_ */