2 #ifndef __SFI_PRIMITIVES_H__
3 #define __SFI_PRIMITIVES_H__
16 SfiBBlock* sfi_bblock_new (
void);
17 SfiBBlock* sfi_bblock_new_sized (guint size);
18 SfiBBlock* sfi_bblock_ref (SfiBBlock *bblock);
19 void sfi_bblock_unref (SfiBBlock *bblock);
20 void sfi_bblock_resize (SfiBBlock *bblock,
22 SfiBBlock* sfi_bblock_copy_deep (
const SfiBBlock *bblock);
23 #define sfi_bblock_copy_shallow sfi_bblock_ref
24 void sfi_bblock_append (SfiBBlock *bblock,
27 void sfi_bblock_append1 (SfiBBlock *bblock,
29 guint sfi_bblock_length (
const SfiBBlock *bblock);
30 guint8* sfi_bblock_get (
const SfiBBlock *bblock);
40 SfiFBlock* sfi_fblock_new (
void);
41 SfiFBlock* sfi_fblock_new_sized (guint size);
42 SfiFBlock* sfi_fblock_new_foreign (guint n_values,
45 SfiFBlock* sfi_fblock_ref (SfiFBlock *fblock);
46 void sfi_fblock_unref (SfiFBlock *fblock);
47 void sfi_fblock_resize (SfiFBlock *fblock,
49 SfiFBlock* sfi_fblock_copy_deep (
const SfiFBlock *fblock);
50 #define sfi_fblock_copy_shallow sfi_fblock_ref
51 void sfi_fblock_append (SfiFBlock *fblock,
53 const gfloat *values);
54 void sfi_fblock_append1 (SfiFBlock *fblock,
56 guint sfi_fblock_length (
const SfiFBlock *fblock);
57 gfloat* sfi_fblock_get (
const SfiFBlock *fblock);
66 SfiSeq* sfi_seq_new (
void);
67 SfiSeq* sfi_seq_ref (SfiSeq *seq);
68 void sfi_seq_unref (SfiSeq *seq);
69 SfiSeq* sfi_seq_copy_deep (
const SfiSeq *seq);
70 #define sfi_seq_copy_shallow sfi_seq_ref
71 void sfi_seq_append (SfiSeq *seq,
73 GValue* sfi_seq_append_empty (SfiSeq *seq,
75 void sfi_seq_clear (SfiSeq *seq);
76 guint sfi_seq_length (
const SfiSeq *seq);
77 GValue* sfi_seq_get (
const SfiSeq *seq,
79 gboolean sfi_seq_check (SfiSeq *seq,
81 gboolean sfi_seq_validate (SfiSeq *seq,
84 void sfi_seq_append_bool (SfiSeq *seq,
86 void sfi_seq_append_int (SfiSeq *seq,
88 void sfi_seq_append_num (SfiSeq *seq,
90 void sfi_seq_append_real (SfiSeq *seq,
92 void sfi_seq_append_string (SfiSeq *seq,
94 void sfi_seq_append_choice (SfiSeq *seq,
96 void sfi_seq_append_bblock (SfiSeq *seq,
98 void sfi_seq_append_fblock (SfiSeq *seq,
100 void sfi_seq_append_pspec (SfiSeq *seq,
102 void sfi_seq_append_seq (SfiSeq *seq,
104 void sfi_seq_append_rec (SfiSeq *seq,
106 void sfi_seq_append_proxy (SfiSeq *seq,
108 SfiBool sfi_seq_get_bool (SfiSeq *seq,
110 SfiInt sfi_seq_get_int (SfiSeq *seq,
112 SfiNum sfi_seq_get_num (SfiSeq *seq,
114 SfiReal sfi_seq_get_real (SfiSeq *seq,
116 const gchar* sfi_seq_get_string (SfiSeq *seq,
118 const gchar* sfi_seq_get_choice (SfiSeq *seq,
120 SfiBBlock* sfi_seq_get_bblock (SfiSeq *seq,
122 SfiFBlock* sfi_seq_get_fblock (SfiSeq *seq,
124 GParamSpec* sfi_seq_get_pspec (SfiSeq *seq,
126 SfiSeq* sfi_seq_get_seq (SfiSeq *seq,
128 SfiRec* sfi_seq_get_rec (SfiSeq *seq,
130 SfiProxy sfi_seq_get_proxy (SfiSeq *seq,
133 gchar** sfi_seq_to_strv (SfiSeq *seq);
134 SfiSeq* sfi_seq_from_strv (gchar **strv);
135 SfiSeq* sfi_seq_from_cstrv (
const gchar **strv);
146 SfiRec* sfi_rec_new (
void);
147 SfiRec* sfi_rec_ref (SfiRec *rec);
148 void sfi_rec_unref (SfiRec *rec);
149 SfiRec* sfi_rec_copy_deep (SfiRec *rec);
150 #define sfi_rec_copy_shallow sfi_rec_ref
151 void sfi_rec_swap_fields (SfiRec *rec,
153 gboolean sfi_rec_validate (SfiRec *rec,
155 void sfi_rec_clear (SfiRec *rec);
156 void sfi_rec_set (SfiRec *rec,
157 const gchar *field_name,
158 const GValue *value);
159 GValue* sfi_rec_get (SfiRec *rec,
160 const gchar *field_name);
161 GValue* sfi_rec_forced_get (SfiRec *rec,
162 const gchar *field_name,
164 guint sfi_rec_n_fields (
const SfiRec *rec);
165 GValue* sfi_rec_field (
const SfiRec *rec,
167 gboolean sfi_rec_check (SfiRec *rec,
169 void sfi_rec_sort (SfiRec *rec);
171 void sfi_rec_set_bool (SfiRec *rec,
172 const gchar *field_name,
174 void sfi_rec_set_int (SfiRec *rec,
175 const gchar *field_name,
177 void sfi_rec_set_num (SfiRec *rec,
178 const gchar *field_name,
180 void sfi_rec_set_real (SfiRec *rec,
181 const gchar *field_name,
183 void sfi_rec_set_string (SfiRec *rec,
184 const gchar *field_name,
185 const gchar *
string);
186 void sfi_rec_set_choice (SfiRec *rec,
187 const gchar *field_name,
188 const gchar *choice);
189 void sfi_rec_set_bblock (SfiRec *rec,
190 const gchar *field_name,
192 void sfi_rec_set_fblock (SfiRec *rec,
193 const gchar *field_name,
195 void sfi_rec_set_pspec (SfiRec *rec,
196 const gchar *field_name,
198 void sfi_rec_set_seq (SfiRec *rec,
199 const gchar *field_name,
201 void sfi_rec_set_rec (SfiRec *rec,
202 const gchar *field_name,
204 void sfi_rec_set_proxy (SfiRec *rec,
205 const gchar *field_name,
207 SfiBool sfi_rec_get_bool (SfiRec *rec,
208 const gchar *field_name);
209 SfiInt sfi_rec_get_int (SfiRec *rec,
210 const gchar *field_name);
211 SfiNum sfi_rec_get_num (SfiRec *rec,
212 const gchar *field_name);
213 SfiReal sfi_rec_get_real (SfiRec *rec,
214 const gchar *field_name);
215 const gchar* sfi_rec_get_string (SfiRec *rec,
216 const gchar *field_name);
217 const gchar* sfi_rec_get_choice (SfiRec *rec,
218 const gchar *field_name);
219 SfiBBlock* sfi_rec_get_bblock (SfiRec *rec,
220 const gchar *field_name);
221 SfiFBlock* sfi_rec_get_fblock (SfiRec *rec,
222 const gchar *field_name);
223 GParamSpec* sfi_rec_get_pspec (SfiRec *rec,
224 const gchar *field_name);
225 SfiSeq* sfi_rec_get_seq (SfiRec *rec,
226 const gchar *field_name);
227 SfiRec* sfi_rec_get_rec (SfiRec *rec,
228 const gchar *field_name);
229 SfiProxy sfi_rec_get_proxy (SfiRec *rec,
230 const gchar *field_name);
Definition: sfiprimitives.hh:11
Definition: sfiprimitives.hh:34
Definition: sfitypes.hh:31
Definition: sfiprimitives.hh:139
Definition: sfiprimitives.hh:61