Top | ![]() |
![]() |
![]() |
![]() |
NautilusInfoProvider allows extension to provide additional information about
files. When nautilus_info_provider_update_file_info()
is called by the application,
extensions will know that it's time to add extra information to the provided
NautilusFileInfo.
NautilusOperationResult nautilus_info_provider_update_file_info (NautilusInfoProvider *provider
,NautilusFileInfo *file
,GClosure *update_complete
,NautilusOperationHandle **handle
);
provider |
||
file |
||
update_complete |
the closure to invoke at some later time when returning
|
|
handle |
an opaque NautilusOperationHandle
that must be set when returning |
[transfer none][nullable][out] |
void nautilus_info_provider_cancel_update (NautilusInfoProvider *provider
,NautilusOperationHandle *handle
);
provider |
||
handle |
the opaque NautilusOperationHandle returned from a previous call to
|
void nautilus_info_provider_update_complete_invoke (GClosure *update_complete
,NautilusInfoProvider *provider
,NautilusOperationHandle *handle
,NautilusOperationResult result
);
struct NautilusInfoProviderInterface { GTypeInterface g_iface; NautilusOperationResult (*update_file_info) (NautilusInfoProvider *provider, NautilusFileInfo *file, GClosure *update_complete, NautilusOperationHandle **handle); void (*cancel_update) (NautilusInfoProvider *provider, NautilusOperationHandle *handle); };
Interface for extensions to provide additional information about files.
Returns a NautilusOperationResult.
See |
||
Cancels a previous call to |
typedef struct _NautilusOperationHandle NautilusOperationHandle;
Handle for asynchronous interfaces. These are opaque handles that must be unique within an extension object. These are returned by operations that return NAUTILUS_OPERATION_IN_PROGRESS.
Return values for asynchronous operations performed by the extension.
See nautilus_info_provider_update_file_info()
.