blob: 59f339c95614a11c38ce0eac0071f9bc6bffeabd (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
/*
* rarian-reg-full.h
* This file is part of Rarian
*
* Copyright (C) 2006 - Don Scorgie
*
* Rarian is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Rarian is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __RARIAN_REG_FULL_H
#define __RARIAN_REG_FULL_H
#ifdef __cplusplus
extern "C" {
#endif
/* A special type of RrnReg that contains all the translations
* of all the fields, instead of the interesting ones
*/
typedef struct _RrnRegFull RrnRegFull;
typedef struct _RrnListEntry RrnListEntry;
typedef struct _RrnSectFull RrnSectFull;
struct _RrnListEntry
{
RrnListEntry * next;
char *text;
char *lang;
};
struct _RrnRegFull
{
RrnListEntry *name;
RrnListEntry *uri;
RrnListEntry *comment;
char *icon;
char *identifier;
char *type;
char **categories;
int weight;
char *heritage;
char *lang;
char *default_section;
int hidden;
RrnSectFull *children;
};
struct _RrnSectFull
{
RrnListEntry *name;
char *identifier;
RrnListEntry *uri;
char *owner;
RrnSectFull *next;
RrnSectFull *prev;
RrnSectFull *children;
};
RrnRegFull * rrn_reg_new_full ();
RrnRegFull * rrn_reg_parse_file_full (char *filename);
RrnRegFull *rrn_find_series_full (char * series_id);
RrnListEntry *rrn_full_add_field (RrnListEntry *current, char *text, char *lang);
void rrn_reg_free_full (RrnRegFull *reg);
#ifdef __cplusplus
}
#endif
#endif /*__RARIAN_REG_FULL_H */
|