osip_list.h | osip_list.h | |||
---|---|---|---|---|
skipping to change at line 120 | skipping to change at line 120 | |||
* @param free_func The method that is able to release one element of the l ist. | * @param free_func The method that is able to release one element of the l ist. | |||
*/ | */ | |||
void osip_list_special_free (osip_list_t * li, void *(*free_func) (void * )); | void osip_list_special_free (osip_list_t * li, void *(*free_func) (void * )); | |||
/** | /** | |||
* Clone a list of element. | * Clone a list of element. | |||
* Each element will be cloned with the method given as the second paramete r. | * Each element will be cloned with the method given as the second paramete r. | |||
* @param src The element to work on. | * @param src The element to work on. | |||
* @param dst The element to work on. | * @param dst The element to work on. | |||
* @param clone_func The method that is able to release one element of the list. | * @param clone_func The method that is able to release one element of the list. | |||
*/ | */ | |||
int osip_list_clone (const osip_list_t * src, osip_list_t * dst, int *(*c lone_func) (void *, void *)); | int osip_list_clone (const osip_list_t * src, osip_list_t * dst, int (*cl one_func) (void *, void **)); | |||
/** | /** | |||
* Free a list of element where elements are pointer to 'char'. | * Free a list of element where elements are pointer to 'char'. | |||
* @param li The element to work on. | * @param li The element to work on. | |||
*/ | */ | |||
void osip_list_ofchar_free (osip_list_t * li); | void osip_list_ofchar_free (osip_list_t * li); | |||
/** | /** | |||
* Get the size of a list of element. | * Get the size of a list of element. | |||
* @param li The element to work on. | * @param li The element to work on. | |||
*/ | */ | |||
int osip_list_size (const osip_list_t * li); | int osip_list_size (const osip_list_t * li); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
osip_port.h | osip_port.h | |||
---|---|---|---|---|
skipping to change at line 419 | skipping to change at line 419 | |||
element->parent = NULL; /* useless */ } \ | element->parent = NULL; /* useless */ } \ | |||
else \ | else \ | |||
{ type_of_element_t *f; \ | { type_of_element_t *f; \ | |||
for (f=first_element; f->next!=NULL; f=f->next) \ | for (f=first_element; f->next!=NULL; f=f->next) \ | |||
{ } \ | { } \ | |||
f->next = element; \ | f->next = element; \ | |||
element->parent = f; \ | element->parent = f; \ | |||
element->next = NULL; \ | element->next = NULL; \ | |||
} | } | |||
const char *osip_strerror(int err); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#define OSIP_SUCCESS 0 | ||||
#define OSIP_UNDEFINED_ERROR -1 | ||||
#define OSIP_BADPARAMETER -2 | ||||
#define OSIP_WRONG_STATE -3 | ||||
#define OSIP_NOMEM -4 | ||||
#define OSIP_SYNTAXERROR -5 | ||||
#define OSIP_NOTFOUND -6 | ||||
#define OSIP_API_NOT_INITIALIZED -7 | ||||
#define OSIP_NO_NETWORK -10 | ||||
#define OSIP_PORT_BUSY -11 | ||||
#define OSIP_UNKNOWN_HOST -12 | ||||
#define OSIP_DISK_FULL -30 | ||||
#define OSIP_NO_RIGHTS -31 | ||||
#define OSIP_FILE_NOT_EXIST -32 | ||||
#define OSIP_TIMEOUT -50 | ||||
#define OSIP_TOOMUCHCALL -51 | ||||
#define OSIP_WRONG_FORMAT -52 | ||||
#define OSIP_NOCOMMONCODEC -53 | ||||
#endif /* _PORT_H_ */ | #endif /* _PORT_H_ */ | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 24 lines changed or added | |||