Changeset 2528
- Timestamp:
- 09/26/07 10:26:13 (1 year ago)
- Files:
-
- trunk/opensync/plugin/opensync_sink.c (modified) (4 diffs)
- trunk/opensync/plugin/opensync_sink_internals.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/opensync/plugin/opensync_sink.c
r2368 r2528 526 526 } 527 527 528 /*! @brief Checks if sink is able to write (commit) 529 * 530 * If the sink is not able to write, then no changes will be commited to 531 * the sink. 532 * 533 * @param sink Pointer to the sink 534 * @returns TRUE if the sink is able to write (commit), FALSE otherwise 535 */ 528 536 osync_bool osync_objtype_sink_get_write(OSyncObjTypeSink *sink) 529 537 { … … 532 540 } 533 541 542 /*! @brief Sets the write status of the sink (commit) 543 * 544 * This function should only called 545 * See osync_objtype_sink_get_write() 546 * 547 * @param sink Pointer to sink 548 * @param write TRUE if the sink is available, FALSE otherwise 549 * 550 */ 534 551 void osync_objtype_sink_set_write(OSyncObjTypeSink *sink, osync_bool write) 535 552 { … … 538 555 } 539 556 557 /*! @brief Checks if sink is able to read single entries 558 * 559 * "Read" means to request a single entry and does not mean to get the 560 * latest changes since last sink. See osync_objtype_sink_get_getchanges(). 561 * The read function explicitly means to read a single entry without triggering 562 * a full sync. This is used for example to check if a conflict between entries 563 * could be ignored. Ignoring conflicts is only possible if the sink is able to 564 * read this conflicting entries on the next sync without triggering a SlowSync. 565 * 566 * @param sink Pointer to the sink 567 * @returns TRUE if the sink is able to read single entries, FALSE otherwise 568 * 569 */ 540 570 osync_bool osync_objtype_sink_get_read(OSyncObjTypeSink *sink) 541 571 { … … 544 574 } 545 575 576 /*! @brief Sets the (single) read status of a sink 577 * 578 * See osync_objtype_sink_get_read() 579 * 580 * @param sink Pointer to the sink 581 * @param read TRUE if the sink is able to read (single entries), FALSE otherwise 582 * 583 */ 546 584 void osync_objtype_sink_set_read(OSyncObjTypeSink *sink, osync_bool read) 547 585 { trunk/opensync/plugin/opensync_sink_internals.h
r1216 r2528 29 29 void *userdata; 30 30 31 /** The objtype type of this sink */ 31 32 char *objtype; 33 34 /** The status if this sink is able to write (commit) */ 32 35 osync_bool write; 36 37 /** The status if this sink is able to read (single entries) */ 33 38 osync_bool read; 39 40 /** The status of this sink */ 34 41 osync_bool enabled; 42 43 /** The request status of a slow-sync of this sink */ 35 44 osync_bool slowsync; 45 36 46 int ref_count; 37 47 /** List to pile up changes for batch commit */
