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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef __NR_TYPE_PRIMITIVES_H__
#define __NR_TYPE_PRIMITIVES_H__
/*
* Typeface and script library
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* g++ port: Nathan Hurst <njh@mail.csse.monash.edu.au>
*
* This code is in public domain
*/
#include <glib/gtypes.h>
struct NRNameList;
struct NRStyleList;
struct NRTypeDict;
typedef void (* NRNameListDestructor) (NRNameList *list);
typedef void (* NRStyleListDestructor) (NRStyleList *list);
struct NRNameList {
guint length;
guchar **names;
guchar **families;
NRNameListDestructor destructor;
};
struct NRStyleRecord {
const char *name;
const char *descr;
};
struct NRStyleList {
guint length;
NRStyleRecord *records;
NRStyleListDestructor destructor;
};
void nr_name_list_release (NRNameList *list);
void nr_style_list_release (NRStyleList *list);
NRTypeDict *nr_type_dict_new (void);
void nr_type_dict_insert (NRTypeDict *td, const gchar *key, void *val);
void *nr_type_dict_lookup (NRTypeDict *td, const gchar *key);
#endif
|