usb_moded 0.86.0+mer64
usb_moded-config-private.h File Reference
#include "usb_moded-config.h"
#include <stdbool.h>
#include <glib.h>

Go to the source code of this file.

Functions

char * config_get_network_setting (const char *config)
char * config_get_network_fallback (const char *config)
bool config_init (void)
bool config_user_clear (uid_t uid)

Detailed Description

Copyright (c) 2010 Nokia Corporation. All rights reserved. Copyright (c) 2012 - 2020 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.

Author
Philippe De Swert phili.nosp@m.ppe..nosp@m.de-sw.nosp@m.ert@.nosp@m.nokia.nosp@m..com
Philippe De Swert phili.nosp@m.pped.nosp@m.eswer.nosp@m.t@gm.nosp@m.ail.c.nosp@m.om
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Slava Monich slava.nosp@m..mon.nosp@m.ich@j.nosp@m.olla.nosp@m..com
Martin Jones marti.nosp@m.n.jo.nosp@m.nes@j.nosp@m.olla.nosp@m.mobil.nosp@m.e.co.nosp@m.m
Andrew den Exter andre.nosp@m.w.de.nosp@m.n.ext.nosp@m.er@j.nosp@m.olla..nosp@m.com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com

This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file usb_moded-config-private.h.

Function Documentation

◆ config_get_network_fallback()

char * config_get_network_fallback ( const char * config)

Get network setting fallback value

Parameters
configsetting key
Returns
setting value string, or NULL

Definition at line 693 of file usb_moded-config.c.

◆ config_get_network_setting()

char * config_get_network_setting ( const char * config)

Get network setting value

Parameters
configsetting key
Returns
setting value string, or NULL

Definition at line 665 of file usb_moded-config.c.

◆ config_init()

bool config_init ( void )

Read the *.ini files and create/overwrite USB_MODED_STATIC_CONFIG_FILE with the merged data.

Returns
0 on failure

Definition at line 1004 of file usb_moded-config.c.

◆ config_user_clear()

bool config_user_clear ( uid_t uid)

Remove user configs

Definition at line 1120 of file usb_moded-config.c.