Tizen Native API  6.5
Eio manipulation of eXtended attribute.

A set of function to manipulate data associated with a specific file.

The functions provided by this API are responsible to manage Extended attribute files. Like file authors, character encoding, checksum, etc.

Functions

Eio_Fileeio_file_xattr (const char *path, Eio_Filter_Cb filter_cb, Eio_Main_Cb main_cb, Eio_Done_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Asynchronously list all eXtended attribute.
Eio_Fileeio_file_xattr_int_set (const char *path, const char *attribute, int xattr_int, Eina_Xattr_Flags flags, Eio_Done_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Define an extended attribute on a file/directory.
Eio_Fileeio_file_xattr_double_set (const char *path, const char *attribute, double xattr_double, Eina_Xattr_Flags flags, Eio_Done_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Define an extended attribute on a file/directory.
Eio_Fileeio_file_xattr_string_set (const char *path, const char *attribute, const char *xattr_string, Eina_Xattr_Flags flags, Eio_Done_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Define a string extended attribute on a file/directory.
Eio_Fileeio_file_xattr_set (const char *path, const char *attribute, const char *xattr_data, unsigned int xattr_size, Eina_Xattr_Flags flags, Eio_Done_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Define an extended attribute on a file/directory.
Eio_Fileeio_file_xattr_get (const char *path, const char *attribute, Eio_Done_Data_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Retrieve the extended attribute of a file/directory.
Eio_Fileeio_file_xattr_int_get (const char *path, const char *attribute, Eio_Done_Int_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Retrieve a extended attribute of a file/directory.
Eio_Fileeio_file_xattr_double_get (const char *path, const char *attribute, Eio_Done_Double_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Retrieve a extended attribute of a file/directory.
Eio_Fileeio_file_xattr_string_get (const char *path, const char *attribute, Eio_Done_String_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
 Retrieve a string extended attribute of a file/directory.

Function Documentation

Eio_File* eio_file_xattr ( const char *  path,
Eio_Filter_Cb  filter_cb,
Eio_Main_Cb  main_cb,
Eio_Done_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Asynchronously list all eXtended attribute.

Parameters:
pathThe path to get the eXtended attribute from.
filter_cbCallback called in the thread to validate the eXtended attribute.
main_cbCallback called in the main loop for each accepted eXtended attribute.
done_cbCallback called in the main loop when the all the eXtended attribute have been listed.
error_cbCallback called in the main loop when something goes wrong during the listing of the eXtended attribute.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.
Since :
3.0
Eio_File* eio_file_xattr_double_get ( const char *  path,
const char *  attribute,
Eio_Done_Double_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Retrieve a extended attribute of a file/directory.

Parameters:
pathThe path to retrieve the extended attribute from.
attributeThe name of the attribute to retrieve.
done_cbCallback called from the main loop when getxattr succeeded.
error_cbCallback called from the main loop when getxattr failed or has been canceled.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_double_get calls eina_xattr_double_get from another thread. This prevents blocking in your apps.

Since :
3.0
Eio_File* eio_file_xattr_double_set ( const char *  path,
const char *  attribute,
double  xattr_double,
Eina_Xattr_Flags  flags,
Eio_Done_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Define an extended attribute on a file/directory.

Parameters:
pathThe path to set the attribute on.
attributeThe name of the attribute to define.
xattr_doubleThe value to link the attribute with.
flagsWhether to insert, replace or create the attribute.
done_cbThe callback called from the main loop when setxattr succeeded.
error_cbThe callback called from the main loop when setxattr failed.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_double_set calls eina_xattr_double_set from another thread. This prevents blocking in your apps. If the writing succeeded, the done_cb will be called even if a cancel was requested, but came too late.

Since :
3.0
Eio_File* eio_file_xattr_get ( const char *  path,
const char *  attribute,
Eio_Done_Data_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Retrieve the extended attribute of a file/directory.

Parameters:
pathThe path to retrieve the extended attribute from.
attributeThe name of the attribute to retrieve.
done_cbCallback called from the main loop when getxattr succeeded.
error_cbCallback called from the main loop when getxattr failed or has been canceled.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_get calls getxattr from another thread. This prevents blocking in your apps.

Since :
3.0
Eio_File* eio_file_xattr_int_get ( const char *  path,
const char *  attribute,
Eio_Done_Int_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Retrieve a extended attribute of a file/directory.

Parameters:
pathThe path to retrieve the extended attribute from.
attributeThe name of the attribute to retrieve.
done_cbCallback called from the main loop when getxattr succeeded.
error_cbCallback called from the main loop when getxattr failed or has been canceled.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_int_get calls eina_xattr_int_get from another thread. This prevents blocking in your apps.

Since :
3.0
Eio_File* eio_file_xattr_int_set ( const char *  path,
const char *  attribute,
int  xattr_int,
Eina_Xattr_Flags  flags,
Eio_Done_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Define an extended attribute on a file/directory.

Parameters:
pathThe path to set the attribute on.
attributeThe name of the attribute to define.
xattr_intThe value to link the attribute with.
flagsWhether to insert, replace or create the attribute.
done_cbThe callback called from the main loop when setxattr succeeded.
error_cbThe callback called from the main loop when setxattr failed.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_int_set calls eina_xattr_int_set from another thread. This prevents blocking in your apps. If the writing succeeded, the done_cb will be called even if a cancel was requested, but came too late.

Since :
3.0
Eio_File* eio_file_xattr_set ( const char *  path,
const char *  attribute,
const char *  xattr_data,
unsigned int  xattr_size,
Eina_Xattr_Flags  flags,
Eio_Done_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Define an extended attribute on a file/directory.

Parameters:
pathThe path to set the attribute on.
attributeThe name of the attribute to define.
xattr_dataThe data to link the attribute with.
xattr_sizeThe size of the data to set.
flagsWhether to insert, replace or create the attribute.
done_cbThe callback called from the main loop when setxattr succeeded.
error_cbThe callback called from the main loop when setxattr failed.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_set calls setxattr from another thread. This prevents blocking in your apps. If the writing succeeded, the done_cb will be called even if a cancel was requested, but came too late.

Since :
3.0
Eio_File* eio_file_xattr_string_get ( const char *  path,
const char *  attribute,
Eio_Done_String_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Retrieve a string extended attribute of a file/directory.

Parameters:
pathThe path to retrieve the extended attribute from.
attributeThe name of the attribute to retrieve.
done_cbCallback called from the main loop when getxattr succeeded.
error_cbCallback called from the main loop when getxattr failed or has been canceled.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_string_get calls eina_xattr_string_get from another thread. This prevents blocking in your apps.

Since :
3.0
Eio_File* eio_file_xattr_string_set ( const char *  path,
const char *  attribute,
const char *  xattr_string,
Eina_Xattr_Flags  flags,
Eio_Done_Cb  done_cb,
Eio_Error_Cb  error_cb,
const void *  data 
)

Define a string extended attribute on a file/directory.

Parameters:
pathThe path to set the attribute on.
attributeThe name of the attribute to define.
xattr_stringThe string to link the attribute with.
flagsWhether to insert, replace or create the attribute.
done_cbThe callback called from the main loop when setxattr succeeded.
error_cbThe callback called from the main loop when setxattr failed.
dataUnmodified user data passed to callbacks
Returns:
A reference to the I/O operation.

eio_file_xattr_string_set calls eina_xattr_string_set from another thread. This prevents blocking in your apps. If the writing succeeded, the done_cb will be called even if a cancel was requested, but came too late.

Since :
3.0