usb_moded 0.86.0+mer64
usb_moded-dyn-config.c File Reference
#include "usb_moded-dyn-config.h"
#include "usb_moded-config-private.h"
#include "usb_moded-log.h"
#include <glob.h>

Go to the source code of this file.

Functions

void modedata_free (modedata_t *self)
 
modedata_tmodedata_copy (const modedata_t *that)
 
void modelist_free (GList *modelist)
 
GList * modelist_load (bool diag)
 

Detailed Description

Copyright (c) 2011 Nokia Corporation. All rights reserved. Copyright (c) 2013 - 2021 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
Thomas Perl thoma.nosp@m.s.pe.nosp@m.rl@jo.nosp@m.lla..nosp@m.com
Slava Monich slava.nosp@m..mon.nosp@m.ich@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-dyn-config.c.

Function Documentation

◆ modedata_copy()

modedata_t * modedata_copy ( const modedata_t * that)

Clone modedata_t object

Parameters
thatObject pointer, or NULL
Returns
Object pointer, or NULL

Definition at line 115 of file usb_moded-dyn-config.c.

◆ modedata_free()

void modedata_free ( modedata_t * self)

Relase modedata_t object

Parameters
selfObject pointer, or NULL

Definition at line 79 of file usb_moded-dyn-config.c.

◆ modelist_free()

void modelist_free ( GList * modelist)

Release mode list

Parameters
modelistList pointer, or NULL

Definition at line 345 of file usb_moded-dyn-config.c.

◆ modelist_load()

GList * modelist_load ( bool diag)

Load mode data files from configuration directory

Parameters
diagtrue to load diagnostic modes, or false for normal modes
Returns
List of mode data objects, or NULL

Definition at line 360 of file usb_moded-dyn-config.c.