src/main/src/netsrvmgrUtiles.cpp
// returns:
// true if file with given 'filename' could be loaded into 'keyFile'
// false otherwise
true if file with given 'filename' could be loaded into 'keyFile'
false otherwise
true if file with given ' filename ' could be loaded into ' keyFile ' false otherwise
bool loadKeyFile (const char* filename, GKeyFile* keyFile)
{
    LOG_ENTRY_EXIT;
    bool ret = true;
    GError* err = NULL;
    g_key_file_load_from_file (keyFile, filename, G_KEY_FILE_NONE, &err);
    if (err != NULL)
    {
        RDK_LOG (RDK_LOG_ERROR, LOG_NMGR, "[%s] error loading '%s' (error domain=%d code=%d message=%s)\n",
                __FUNCTION__, filename, err->domain, err->code, err->message);
        g_error_free (err);
        ret = false;
    }
    return ret;
}
bool loadKeyFile ( const char * filename , GKeyFile * keyFile ) { LOG_ENTRY_EXIT ; bool ret = true ; GError * err = NULL ; g_key_file_load_from_file ( keyFile , filename , G_KEY_FILE_NONE , & err ) ; if ( err != NULL ) { RDK_LOG ( RDK_LOG_ERROR , LOG_NMGR , " \n " , __FUNCTION__ , filename , err -> domain , err -> code , err -> message ) ; g_error_free ( err ) ; ret = false ; } return ret ; }
returns:
true if file with given 'filename' could be loaded into 'keyFile'
false otherwise
returns : true if file with given ' filename ' could be loaded into ' keyFile ' false otherwise