forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconv.h
36 lines (26 loc) · 755 Bytes
/
conv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_ICONV_CONV_H
#define ELEKTRA_PLUGIN_ICONV_CONV_H
#include <kdberrors.h>
#include <kdbplugin.h>
#include <iconv.h>
#include <langinfo.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#define UTF8_TO 1
#define UTF8_FROM 0
#define BACKENDNAME "iconv"
#define BACKENDVERSION "0.0.1"
int kdbbNeedsUTF8Conversion (Plugin * handle);
int kdbbUTF8Engine (Plugin * handle, int direction, char ** string, size_t * inputOutputByteSize);
int elektraIconvGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraIconvSet (Plugin * handle, KeySet * ks, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT;
#endif