Virtual Method
EBackendCollectionBackendcreate_resource_sync
since: 3.6
Declaration [src]
gboolean
create_resource_sync (
ECollectionBackend* backend,
ESource* source,
GCancellable* cancellable,
GError** error
)
Description [src]
Creates a server-side resource described by source. For example, if
source describes a new calendar, an equivalent calendar is created on
the server.
It is the implementor’s responsibility to examine source and determine
what the equivalent server-side resource would be. If this cannot be
determined without ambiguity, the function must return an error.
After the server-side resource is successfully created, the implementor
must also add an ESource to backend‘s ECollectionBackend:server. This
can either be done immediately or in response to some “resource created”
notification from the server. The added ESource can be source itself
or a different ESource instance that describes the new resource.
If an error occurs, the function will set error and return FALSE.
Available since: 3.6
Parameters
source-
Type:
ESourceAn
ESource.The data is owned by the caller of the method. cancellable-
Type:
GCancellableOptional
GCancellableobject, orNULL.The argument can be NULL.The data is owned by the caller of the method. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the virtual function if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.