| 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 |
*/ |
| 8 |
|
| 9 |
#ifndef _LIBMBIM_GLIB_MBIM_UTILS_H_ |
| 10 |
#define _LIBMBIM_GLIB_MBIM_UTILS_H_ |
| 11 |
|
| 12 |
#if !defined (__LIBMBIM_GLIB_H_INSIDE__) && !defined (LIBMBIM_GLIB_COMPILATION) |
| 13 |
#error "Only <libmbim-glib.h> can be included directly." |
| 14 |
#endif |
| 15 |
|
| 16 |
#include <glib.h> |
| 17 |
|
| 18 |
G_BEGIN_DECLS |
| 19 |
|
| 20 |
/* Enabling/Disabling traces */ |
| 21 |
|
| 22 |
/** |
| 23 |
* mbim_utils_get_traces_enabled: |
| 24 |
* |
| 25 |
* Checks whether MBIM message traces are currently enabled. |
| 26 |
* |
| 27 |
* Returns: %TRUE if traces are enabled, %FALSE otherwise. |
| 28 |
* |
| 29 |
* Since: 1.0 |
| 30 |
*/ |
| 31 |
gboolean mbim_utils_get_traces_enabled (void); |
| 32 |
|
| 33 |
/** |
| 34 |
* mbim_utils_set_traces_enabled: |
| 35 |
* @enabled: %TRUE to enable traces, %FALSE to disable them. |
| 36 |
* |
| 37 |
* Sets whether MBIM message traces are enabled or disabled. |
| 38 |
* |
| 39 |
* Since: 1.0 |
| 40 |
*/ |
| 41 |
void mbim_utils_set_traces_enabled (gboolean enabled); |
| 42 |
|
| 43 |
/** |
| 44 |
* mbim_utils_set_show_personal_info: |
| 45 |
* @show_personal_info: %TRUE to show personal info in traces, %FALSE otherwise. |
| 46 |
* |
| 47 |
* Sets whether personal info is printed when traces are enabled. |
| 48 |
* |
| 49 |
* Since: 1.28 |
| 50 |
*/ |
| 51 |
void mbim_utils_set_show_personal_info (gboolean show_personal_info); |
| 52 |
|
| 53 |
/** |
| 54 |
* mbim_utils_get_show_personal_info: |
| 55 |
* |
| 56 |
* Checks whether personal info should be hidden when traces are enabled. |
| 57 |
* |
| 58 |
* Returns: %TRUE to show personal info in trace, %FALSE otherwise. |
| 59 |
* |
| 60 |
* Since: 1.28 |
| 61 |
*/ |
| 62 |
gboolean mbim_utils_get_show_personal_info (void); |
| 63 |
|
| 64 |
G_END_DECLS |
| 65 |
|
| 66 |
#endif /* _LIBMBIM_GLIB_MBIM_UTILS_H_ */ |