PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
plpy_util.h
Go to the documentation of this file.
1/*--------------------------
2 * common utility functions
3 *--------------------------
4 */
5
6#ifndef PLPY_UTIL_H
7#define PLPY_UTIL_H
8
9#include "plpython.h"
10
11extern PGDLLEXPORT PyObject *PLyUnicode_Bytes(PyObject *unicode);
12extern PGDLLEXPORT char *PLyUnicode_AsString(PyObject *unicode);
13
14extern PGDLLEXPORT PyObject *PLyUnicode_FromString(const char *s);
15extern PGDLLEXPORT PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
16
17#endif /* PLPY_UTIL_H */
#define PGDLLEXPORT
Definition: c.h:1306
PGDLLEXPORT char * PLyUnicode_AsString(PyObject *unicode)
Definition: plpy_util.c:82
PGDLLEXPORT PyObject * PLyUnicode_FromString(const char *s)
Definition: plpy_util.c:117
PGDLLEXPORT PyObject * PLyUnicode_Bytes(PyObject *unicode)
Definition: plpy_util.c:20
PGDLLEXPORT PyObject * PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size)
Definition: plpy_util.c:96