![]() |
![]() |
![]() |
MateVFS - Filesystem Abstraction library | ![]() |
---|---|---|---|---|
Top | Description |
MateVFSContextMateVFSContext — contexts allows modules to track thread usage and cancellation properly |
MateVFSContext * mate_vfs_context_new (void
); void mate_vfs_context_free (MateVFSContext *ctx
); MateVFSCancellation * mate_vfs_context_get_cancellation (const MateVFSContext *ctx
); #define mate_vfs_context_check_cancellation (x) const MateVFSContext * mate_vfs_context_peek_current (void
); gboolean mate_vfs_context_check_cancellation_current (void
);
MateVFSContext * mate_vfs_context_new (void
);
Creates a new context and cancellation object. Must be called from the main glib event loop.
Returns : |
a newly allocated MateVFSContext. |
void mate_vfs_context_free (MateVFSContext *ctx
);
Free ctx
and destroy the associated MateVFSCancellation.
|
context to be freed. |
MateVFSCancellation * mate_vfs_context_get_cancellation (const MateVFSContext *ctx
);
Retrieve the MateVFSCancellation associated with ctx
.
|
context to get the MateVFSCancellation from. |
Returns : |
ctx 's MateVFSCancellation. |
#define mate_vfs_context_check_cancellation(x) (mate_vfs_cancellation_check((x) ? mate_vfs_context_get_cancellation((x)) : NULL))
const MateVFSContext * mate_vfs_context_peek_current (void
);
Get the currently active context. It shouldn't be manipulated but can be compared to contexts module holds to determine whether they are active.
Returns : |
the currently active MateVFSContext. |