---
name: "config_values_s"
section: "3"
platform: "linux"
package: "libxine-dev"
version: "0.9.8-2woody3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/config_values_s"
---

# config\_values\_s(3)

## NAME

config\_values\_s -

## SYNOPSIS

`#include <xine.h>`

### Data Fields

char\* (\* **lookup\_str** )(**config\_values\_t** \*self, char \*key, char \*str\_default)\
 int (\* **lookup\_int** )(**config\_values\_t** \*self, char \*key, int n\_default)\
 void (\* **set\_str** )(**config\_values\_t** \*self, char \*key, char \*value)\
 void (\* **set\_int** )(**config\_values\_t** \*self, char \*key, int value)\
 void (\* **save** )(**config\_values\_t** \*self)\
 void (\* **read** )(**config\_values\_t** \*self, char \*filename)\
 **cfg\_data\_t**\* **data**\

## DETAILED DESCRIPTION

Configuration file manipulation.

**See also:**  **config\_file\_init**()

## FIELD DOCUMENTATION

### cfg\_data\_t \* config\_values\_s::data

Contains private data of this configuration file.

### int(\* config\_values\_s::lookup\_int)(config\_values\_t \*self, char \*key, int n\_default)

Lookup integer values in configuration file.

### char \*(\* config\_values\_s::lookup\_str)(config\_values\_t \*self, char \*key, char \*str\_default)

Lookup string values in configuration file.

### void(\* config\_values\_s::read)(config\_values\_t \*self, char \*filename)

Read configuration file from disk, overriding values in memory. If you also want to clear values that are not in the file, use **config\_file\_init**() instead!

### void(\* config\_values\_s::save)(config\_values\_t \*self)

Write configuration file to disk.

### void(\* config\_values\_s::set\_int)(config\_values\_t \*self, char \*key, int value)

Set integer values in configuration file.

### void(\* config\_values\_s::set\_str)(config\_values\_t \*self, char \*key, char \*value)

Set string values in configuration file.

## AUTHOR

Generated automatically by Doxygen for XINE, A Free Video Player Project - API reference from the source code.
