Add uuid wrapper API call ast_uuid_generate_str().
* Updated test_uuid.c to test the new API call. * Made system use the new API call to eliminate "10's of lines" where used. * Fixed untested ast_strdup() return in stasis_subscribe() by eliminating the need for it. struct stasis_subscription now contains the uniqueid[] string. * Fixed some issues in exchangecal_write_event(): Create uid with enough space for a UUID string to avoid a realloc. Fix off by one error if the calendar event provided a UUID string. There is no need to check for NULL before calling ast_free(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- include/asterisk/uuid.h 13 additions, 2 deletionsinclude/asterisk/uuid.h
- main/sorcery.c 1 addition, 9 deletionsmain/sorcery.c
- main/stasis.c 4 additions, 14 deletionsmain/stasis.c
- main/uuid.c 30 additions, 7 deletionsmain/uuid.c
- res/res_calendar_exchange.c 34 additions, 49 deletionsres/res_calendar_exchange.c
- res/res_sorcery_config.c 1 addition, 8 deletionsres/res_sorcery_config.c
- tests/test_uuid.c 18 additions, 2 deletionstests/test_uuid.c
Loading
Please register or sign in to comment