/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/Map.h

  • Committer: Gustav Hartvigsson
  • Date: 2016-01-30 21:23:29 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160130212329-cjpxy0vn851li8f3
* added S_EXPERTED to public functions.
* renamed -  internal_s_box_set_err_on_missmatch () to _internal_s_box_set_err_on_missmatch ().
* Replaced some tabs with spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 * @param key The key to be added to the item.
91
91
 * @param value The value to be added to the item.
92
92
 */
 
93
S_EXPORTED
93
94
SMapItem *
94
95
s_map_item_new (void * key, void * value);
95
96
 
100
101
 * @param free_key The function to be used to free the key.
101
102
 * @param free_value The function to be used to free the value.
102
103
 */
 
104
S_EXPORTED
103
105
void
104
106
s_map_item_free (SMapItem * self,
105
107
                 FreeFunc free_key,
123
125
 * Check if free_key and/or free_value is null and set them to something
124
126
 * appropriate.
125
127
 */
 
128
S_EXPORTED
126
129
SMap *
127
130
s_map_new (CompFunc comp_func,
128
131
           HashFunc key_hash_func,
134
137
 * 
135
138
 * @param self the object to free.
136
139
 */
 
140
S_EXPORTED
137
141
void
138
142
s_map_free (SMap * self, sboolean free_data);
139
143
 
146
150
 * @todo
147
151
 *  make it return false on failure, or some other nastiness.
148
152
 */
 
153
S_EXPORTED
149
154
void
150
155
s_map_add (SMap * self, spointer key, spointer value);
151
156
 
156
161
 * @param key the key that you use to retrieve the value from the SMap from
157
162
 *            with.
158
163
 */
 
164
S_EXPORTED
159
165
spointer
160
166
s_map_get (SMap * self, spointer key);
161
167
 
162
168
 
 
169
S_EXPORTED
163
170
SMapItem *
164
171
s_map_get_item (SMap * self, spointer key);
165
172
 
166
173
/**
167
174
 * This function removes an item from 
168
175
 */
 
176
S_EXPORTED
169
177
void
170
178
s_map_remove (SMap * self, spointer key);
171
179
 
183
191
 * The <tt>user_data</tt> is passed to the function, and the <tt>item</tt>
184
192
 * is what you operate on inside the function. <tt>map</tt> can be ignored.
185
193
 */
 
194
S_EXPORTED
186
195
void
187
196
s_map_for_each (SMap * self, ForEachFunc foreach_func, spointer user_data);
188
197
 
205
214
}
206
215
 @endcode
207
216
 */
 
217
S_EXPORTED
208
218
char *
209
219
s_map_serialize_json (SMap * self,
210
220
                      FuncPointer to_json_key,
221
231
 * @param self The SMap to write to.
222
232
 * @param data the JSON data to be deselialised.
223
233
 */
 
234
S_EXPORTED
224
235
void
225
236
s_map_deserialize_json (SMap * self ,const char * data,
226
237
                        FuncPointer from_json_key,