Method

MsgDriveServicerename

Declaration [src]

MsgDriveItem*
msg_drive_service_rename (
  MsgDriveService* self,
  MsgDriveItem* item,
  const char* new_name,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Sets a new drive item name.

Parameters

item MsgDriveItem
 

A MsgDriveItem.

 The data is owned by the caller of the function.
new_name const char*
 

New name of item.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
cancellable GCancellable
 

A GCancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: MsgDriveItem
 

The renamed MsgDriveItem

 The caller of the method takes ownership of the data, and is responsible for freeing it.