Changeset 2528

Show
Ignore:
Timestamp:
09/26/07 10:26:13 (1 year ago)
Author:
dgollub
Message:

Add some more API description for osync_objtype_sink_* "class".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/opensync/plugin/opensync_sink.c

    r2368 r2528  
    526526} 
    527527 
     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 */ 
    528536osync_bool osync_objtype_sink_get_write(OSyncObjTypeSink *sink) 
    529537{ 
     
    532540} 
    533541 
     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 */ 
    534551void osync_objtype_sink_set_write(OSyncObjTypeSink *sink, osync_bool write) 
    535552{ 
     
    538555} 
    539556 
     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 */ 
    540570osync_bool osync_objtype_sink_get_read(OSyncObjTypeSink *sink) 
    541571{ 
     
    544574} 
    545575 
     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 */ 
    546584void osync_objtype_sink_set_read(OSyncObjTypeSink *sink, osync_bool read) 
    547585{ 
  • trunk/opensync/plugin/opensync_sink_internals.h

    r1216 r2528  
    2929        void *userdata; 
    3030         
     31        /** The objtype type of this sink */ 
    3132        char *objtype; 
     33 
     34        /** The status if this sink is able to write (commit) */ 
    3235        osync_bool write; 
     36 
     37        /** The status if this sink is able to read (single entries) */ 
    3338        osync_bool read; 
     39 
     40        /** The status of this sink */ 
    3441        osync_bool enabled; 
     42 
     43        /** The request status of a slow-sync of this sink */ 
    3544        osync_bool slowsync; 
     45 
    3646        int ref_count; 
    3747        /** List to pile up changes for batch commit */