CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/cache/sources/hcitools/textfile.h
Views: 3959
1
/*
2
*
3
* BlueZ - Bluetooth protocol stack for Linux
4
*
5
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
6
*
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
*
22
*/
23
24
#ifndef __TEXTFILE_H
25
#define __TEXTFILE_H
26
27
int create_file(const char *filename, const mode_t mode);
28
int create_name(char *buf, size_t size, const char *path,
29
const char *address, const char *name);
30
31
int textfile_put(const char *pathname, const char *key, const char *value);
32
int textfile_del(const char *pathname, const char *key);
33
char *textfile_get(const char *pathname, const char *key);
34
35
typedef void (*textfile_cb) (char *key, char *value, void *data);
36
37
int textfile_foreach(const char *pathname, textfile_cb func, void *data);
38
39
#endif /* __TEXTFILE_H */
40
41