Added information on function name added to LogRecord, and the 'extra' keyword parameter.
[python.git] / Include / ucnhash.h
bloba664336aa5e06b6ffc2fcbd3a679ef32817e2bd9
1 /* Unicode name database interface */
3 #ifndef Py_UCNHASH_H
4 #define Py_UCNHASH_H
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
9 /* revised ucnhash CAPI interface (exported through a PyCObject) */
11 typedef struct {
13 /* Size of this struct */
14 int size;
16 /* Get name for a given character code. Returns non-zero if
17 success, zero if not. Does not set Python exceptions. */
18 int (*getname)(Py_UCS4 code, char* buffer, int buflen);
20 /* Get character code for a given name. Same error handling
21 as for getname. */
22 int (*getcode)(const char* name, int namelen, Py_UCS4* code);
24 } _PyUnicode_Name_CAPI;
26 #ifdef __cplusplus
28 #endif
29 #endif /* !Py_UCNHASH_H */