csync file lockling internals
[csync internal API]

Collaboration diagram for csync file lockling internals:


Functions

int csync_lock (const char *lockfile)
void csync_lock_remove (const char *lockfile)


Function Documentation

int csync_lock ( const char *  lockfile  ) 

Lock the client if possible.

This functiion tries to lock the client with a lock file.

Parameters:
lockfile The lock file to create.
Returns:
0 if the lock was successfull, less than 0 if the lock file couldn't be created or if it is already locked.

void csync_lock_remove ( const char *  lockfile  ) 

Remove the lockfile.

Only our own lock can be removed. This function can't remove a lock from another client.

Parameters:
lockfile The lock file to remove.


Generated on Mon May 4 17:43:40 2009 for doc by  doxygen 1.5.6