Example #1
0
int
ini_find_port (char *port, char *param)
{
    char key[MAX_KEY_SIZE];

    KEY_PORT (key, sizeof(key), port, param);
    return ini_find (key);
}
Example #2
0
int
ini_getbool_port (int *value, char *port, char *param)
{
    char key[MAX_KEY_SIZE];

    KEY_PORT (key, sizeof(key), port, param);
    if (ini_getbool (value, key))
        return 1;
    return ini_getbool_id (value, param);
}
Example #3
0
int
ini_getdouble_port (double *value, char *port, char *param)
{
    char key[MAX_KEY_SIZE];

    KEY_PORT (key, sizeof(key), port, param);
    if (ini_getdouble (value, key))
        return 1;
    return ini_getdouble_id (value, param);
}
Example #4
0
int
ini_getstr_port (char **value, char *port, char *param)
{
  char key[MAX_KEY_SIZE];

  KEY_PORT (key, port, param);
  if (ini_getstr (value, key))
    return 1;
  return ini_getstr_id (value, param);
}