php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
inifile.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Marcus Boerger <helly@php.net> |
14 +----------------------------------------------------------------------+
15 */
16
17#ifndef PHP_LIB_INIFILE_H
18#define PHP_LIB_INIFILE_H
19
20typedef struct {
21 char *group;
22 char *name;
23} key_type;
24
25typedef struct {
26 char *value;
27} val_type;
28
29typedef struct {
32 size_t pos;
33} line_type;
34
43
44val_type inifile_fetch(inifile *dba, const key_type *key, int skip);
46int inifile_nextkey(inifile *dba);
47int inifile_delete(inifile *dba, const key_type *key);
48int inifile_delete_ex(inifile *dba, const key_type *key, bool *found);
49int inifile_replace(inifile *dba, const key_type *key, const val_type *val);
50int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, bool *found);
51int inifile_append(inifile *dba, const key_type *key, const val_type *val);
52const char *inifile_version(void);
53
54key_type inifile_key_split(const char *group_name);
55char * inifile_key_string(const key_type *key);
56
60
62void inifile_free(inifile *dba, int persistent);
63
64#endif
zval * val
Definition ffi.c:4262
ffi persistent
Definition ffi.c:3633
int inifile_replace(inifile *dba, const key_type *key, const val_type *val)
Definition inifile.c:572
void inifile_free(inifile *dba, int persistent)
Definition inifile.c:100
int inifile_firstkey(inifile *dba)
Definition inifile.c:284
inifile * inifile_alloc(php_stream *fp, int readonly, int persistent)
Definition inifile.c:80
int inifile_delete(inifile *dba, const key_type *key)
Definition inifile.c:558
int inifile_delete_ex(inifile *dba, const key_type *key, bool *found)
Definition inifile.c:565
val_type inifile_fetch(inifile *dba, const key_type *key, int skip)
Definition inifile.c:241
char * inifile_key_string(const key_type *key)
Definition inifile.c:128
const char * inifile_version(void)
Definition inifile.c:41
int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, bool *found)
Definition inifile.c:579
int inifile_nextkey(inifile *dba)
Definition inifile.c:292
int inifile_append(inifile *dba, const key_type *key, const val_type *val)
Definition inifile.c:586
void inifile_key_free(key_type *key)
Definition inifile.c:48
void inifile_val_free(val_type *val)
Definition inifile.c:61
key_type inifile_key_split(const char *group_name)
Definition inifile.c:111
void inifile_line_free(line_type *ln)
Definition inifile.c:71
phar_globals readonly
Definition phar.c:3346
unsigned char key[REFLECTION_KEY_LEN]
struct _php_stream php_stream
Definition php_streams.h:96
php_stream * fp
Definition inifile.h:38
int lockfd
Definition inifile.h:37
char * lockfn
Definition inifile.h:36
line_type curr
Definition inifile.h:40
int readonly
Definition inifile.h:39
line_type next
Definition inifile.h:41
char * name
Definition inifile.h:22
char * group
Definition inifile.h:21
key_type key
Definition inifile.h:30
val_type val
Definition inifile.h:31
size_t pos
Definition inifile.h:32
char * value
Definition inifile.h:26