Changeset 244
- Timestamp:
- 06/28/07 11:02:10 (1 year ago)
- Files:
-
- trunk/Doxyfile.in (modified) (4 diffs)
- trunk/libsyncml/objects/sml_ds_server.c (modified) (5 diffs)
- trunk/libsyncml/objects/sml_ds_server.h (modified) (3 diffs)
- trunk/libsyncml/objects/sml_ds_server_internals.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Doxyfile.in
r50 r244 100 100 # the base classes will not be shown. 101 101 102 INLINE_INHERITED_MEMB = NO102 INLINE_INHERITED_MEMB = YES 103 103 104 104 # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full … … 1034 1034 # have no effect if this option is set to NO (the default) 1035 1035 1036 HAVE_DOT = NO1036 HAVE_DOT = YES 1037 1037 1038 1038 # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen … … 1054 1054 # Language. 1055 1055 1056 UML_LOOK = NO1056 UML_LOOK = YES 1057 1057 1058 1058 # If set to YES, the inheritance and collaboration graphs will show the … … 1081 1081 # functions only using the \callgraph command. 1082 1082 1083 CALL_GRAPH = NO1083 CALL_GRAPH = YES 1084 1084 1085 1085 # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen trunk/libsyncml/objects/sml_ds_server.c
r240 r244 512 512 dsession->syncReply = SML_NO_ERROR; 513 513 514 // Now there are no more changes... do some fancy callback. Some applications will love it ;) 515 if (!dsession->recvChanges && dsession->recvEventCallback) { 516 dsession->recvEventCallback(dsession, SML_DS_EVENT_GOTCHANGES, dsession->recvEventCallbackUserdata); 517 smlTrace(TRACE_INTERNAL, "recvEventCallback no changes in recvSync callback"); 518 } 519 514 520 smlTrace(TRACE_EXIT, "%s", __func__); 515 521 } else if (dsession->recvChanges && dsession->changesCallback) { … … 517 523 518 524 while (dsession->recvChanges) { 525 519 526 SmlCommand *cmd = dsession->recvChanges->data; 520 527 … … 529 536 * uid (if we are a client for example). If it is not given we use the 530 537 * source uri. This has then to be translated by the sync engine of course */ 531 538 532 539 char *data = NULL; 533 540 unsigned int size = 0; … … 557 564 dsession->recvChanges = g_list_delete_link(dsession->recvChanges, dsession->recvChanges); 558 565 } 559 566 567 // Now there are no more changes... do some fancy callback. Some applications will love it ;) 568 if (dsession->recvEventCallback) { 569 dsession->recvEventCallback(dsession, SML_DS_EVENT_GOTCHANGES, dsession->recvEventCallbackUserdata); 570 smlTrace(TRACE_INTERNAL, "recvEventCallback all changes sent in recvChanges callback"); 571 } 572 560 573 smlTrace(TRACE_EXIT, "%s", __func__); 574 } else { 575 smlTrace(TRACE_ENTRY, "%s()", __func__); 576 577 smlTrace(TRACE_INTERNAL, "recvChanges: %p changesCallback: %p", dsession->recvChanges, dsession->changesCallback); 578 579 smlTrace(TRACE_EXIT, "%s()", __func__); 580 561 581 } 562 582 … … 832 852 } 833 853 854 void smlDsSessionGetEvent(SmlDsSession *dsession, SmlDsSessionEventCb eventCallback, void *userdata) 855 { 856 smlTrace(TRACE_ENTRY, "%s(%p, %p, %p)", __func__, dsession, eventCallback, userdata); 857 smlAssert(dsession); 858 smlAssert(eventCallback); 859 860 dsession->recvEventCallback = eventCallback; 861 dsession->recvEventCallbackUserdata = userdata; 862 863 //smlDsSessionDispatch(dsession); 864 865 smlTrace(TRACE_EXIT, "%s", __func__); 866 } 867 868 834 869 /** @brief Start the sync command to send to the other side 835 870 * trunk/libsyncml/objects/sml_ds_server.h
r240 r244 31 31 } SmlDsServerType; 32 32 33 typedef enum { 34 SML_DS_EVENT_GOTCHANGES = 0, 35 SML_DS_EVENT_COMMITEDCHANGES = 1 36 } SmlDsEvent; 37 33 38 typedef SmlErrorType (* SmlDsServerSanCb) (SmlDsServer *dsserver, SmlAlertType type, void *userdata); 34 39 … … 36 41 typedef SmlBool (* SmlDsSessionAlertCb) (SmlDsSession *dsession, SmlAlertType type, const char *last, const char *next, void *userdata); 37 42 typedef void (* SmlDsSessionSyncCb) (SmlDsSession *dsession, unsigned int numchanges, void *userdata); 43 typedef void (* SmlDsSessionEventCb) (SmlDsSession *dsession, SmlDsEvent event, void *userdata); 38 44 typedef SmlBool (* SmlDsSessionChangesCb) (SmlDsSession *dsession, SmlChangeType type, const char *uid, char *data, unsigned int size, const char *contenttype, void *userdata, SmlError **error); 39 45 typedef void (* SmlDsSessionWriteCb) (SmlDsSession *dsession, SmlStatus *status, const char *newuid, void *userdata); … … 59 65 void smlDsSessionGetChanges(SmlDsSession *dsession, SmlDsSessionChangesCb chgCallback, void *userdata); 60 66 void smlDsSessionGetSync(SmlDsSession *dsession, SmlDsSessionSyncCb chgCallback, void *userdata); 67 void smlDsSessionGetEvent(SmlDsSession *dsession, SmlDsSessionEventCb eventCallback, void *userdata); 61 68 SmlBool smlDsSessionSendSync(SmlDsSession *dsession, unsigned int num_changes, SmlStatusReplyCb callback, void *userdata, SmlError **error); 62 69 SmlBool smlDsSessionQueueChange(SmlDsSession *dsession, SmlChangeType type, const char *uid, const char *data, unsigned int size, const char *contenttype, SmlDsSessionWriteCb callback, void *userdata, SmlError **error); trunk/libsyncml/objects/sml_ds_server_internals.h
r197 r244 67 67 void *sentSyncCallbackUserdata; 68 68 69 /** Callback that will infomration about the Ds Session events */ 70 SmlDsSessionEventCb recvEventCallback; 71 void *recvEventCallbackUserdata; 72 69 73 /** The temporary storage for the sync command to send */ 70 74 SmlCommand *syncCommand;
