/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/baseobject.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:
123
123
 *
124
124
 * @warning DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
125
125
 */
 
126
S_EXPORTED
126
127
void
127
128
s_object_set_ref_method (SObject * self, MethodFuncInt method);
128
129
 
131
132
 *
132
133
 * @warning DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
133
134
 */
 
135
S_EXPORTED
134
136
void
135
137
s_object_set_unref_method (SObject * self, MethodFuncInt method);
136
138
 
151
153
/**
152
154
 *
153
155
 */
 
156
S_EXPORTED
154
157
void
155
158
s_object_set_free_method (SObject * self, MethodFunc method);
156
159
 
172
175
 * This function initializes an instance of the SObject, it also sets
173
176
 * the methods to be used with the object and sets the reference count to one.
174
177
 */
 
178
S_EXPORTED
175
179
void
176
180
s_object_initialize (SObject * self, const char * name);
177
181
 
180
184
 *
181
185
 * @return a new SObject
182
186
 */
 
187
S_EXPORTED
183
188
SObject *
184
189
s_object_new ();
185
190
 
187
192
 * This function desensitizes/frees an object even if it is still referenced.
188
193
 * This is usually a bad idea, use s_object_unref () instead.
189
194
 */
 
195
S_EXPORTED
190
196
void
191
197
s_object_free (SObject * self);
192
198
 
193
199
/**
194
200
 * This function gets the class (which hold the object methods).
195
201
 */
 
202
S_EXPORTED
196
203
SObjectClass *
197
204
s_object_get_class (SObject * self);
198
205
 
199
206
/**
200
207
 * This function sets the instance class of an object.
201
208
 */
 
209
S_EXPORTED
202
210
void
203
211
s_object_set_class (SObject * self, SObjectClass * klass);
204
212
 
209
217
 *
210
218
 * It returns the current (after change) reference count.
211
219
 */
 
220
S_EXPORTED
212
221
sint
213
222
s_object_unref (SObject * self);
214
223
 
217
226
 *
218
227
 * Returns the current (after change) reference count.
219
228
 */
 
229
S_EXPORTED
220
230
sint
221
231
s_object_ref (SObject * self);
222
232
 
223
233
/**
224
234
 * This function returns the current reference count without changing it.
225
235
 */
 
236
S_EXPORTED
226
237
sint
227
238
s_object_get_refcount (SObject * self);
228
239
 
232
243
 *
233
244
 * Note: The string that is returned must be freed.
234
245
 */
 
246
S_EXPORTED
235
247
schar *
236
248
s_object_to_string (SObject * self);
237
249