OpenCBM
|
Shared library / DLL for accessing the driver Read configuration file. More...
#include "configuration.h"
#include "libmisc.h"
#include "opencbm-plugin-install.h"
#include "version.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | DBG_USERMODE |
#define | DBG_PROGNAME "OPENCBM.DLL" |
#define | INVALID_FILE_ATTRIBUTES ((DWORD)-1) |
#define | FILENAME_CONFIGFILE "opencbm.conf" |
The filename of the configuration file. | |
Functions | |
const char * | configuration_get_default_filename (void) |
Get the default filename for the configuration file. More... | |
const char * | configuration_get_default_filename_for_install (unsigned int DefaultLocation) |
Get the default filename for the configuration file on installation. More... | |
Shared library / DLL for accessing the driver Read configuration file.
Definition in file WINDOWS/configuration_name.c.
#define DBG_PROGNAME "OPENCBM.DLL" |
Mark: We are building the DLL
The name of the executable
Definition at line 39 of file WINDOWS/configuration_name.c.
#define DBG_USERMODE |
Mark: We are in user-space (for debug.h)
Definition at line 33 of file WINDOWS/configuration_name.c.
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1) |
This file is "like" debug.c, that is, define some variables
Definition at line 47 of file WINDOWS/configuration_name.c.
const char* configuration_get_default_filename | ( | void | ) |
Get the default filename for the configuration file.
Get the default filename of the configuration file.
Definition at line 200 of file WINDOWS/configuration_name.c.
References cbmlibmisc_strcat(), cbmlibmisc_strdup(), and OPENCBM_DEFAULT_CONFIGURATION_FILE_NAME.
const char* configuration_get_default_filename_for_install | ( | unsigned int | DefaultLocation | ) |
Get the default filename for the configuration file on installation.
Get the default filename of the configuration file. This function returns a filename even if no configuration exists yet. This is used for the installation, where the name for the initial configuration file must be found.
DefaultLocation | In case a new file has to be created, give the preference of one of the locations to use. |
Definition at line 224 of file WINDOWS/configuration_name.c.
Referenced by opencbm_plugin_install_generic().