Tizen Native API  7.0

This provides APIs related to Place Attributes information, used in Place Discovery and Search.

Functions

int maps_place_attribute_destroy (maps_place_attribute_h attribute)
 Destroys the place attribute handle and releases all its resources.
int maps_place_attribute_clone (const maps_place_attribute_h origin, maps_place_attribute_h *cloned)
 Clones the place attribute handle.
int maps_place_attribute_get_id (const maps_place_attribute_h attribute, char **id)
 Gets the place attribute ID.
int maps_place_attribute_get_label (const maps_place_attribute_h attribute, char **label)
 Gets the place attribute label.
int maps_place_attribute_get_text (const maps_place_attribute_h attribute, char **text)
 Gets the place attribute text.

Typedefs

typedef void * maps_place_attribute_h
 The Place Attribute handle.

Typedef Documentation

typedef void* maps_place_attribute_h

The Place Attribute handle.

The handle of Place Attribute instance.

Since :
2.3.2
Remarks:
To release the handle use maps_place_attribute_destroy().
To clone the handle use maps_place_attribute_clone().
See also:
maps_place_attribute_destroy()
maps_place_attribute_clone()

Function Documentation

Clones the place attribute handle.

This function clones the place attribute handle origin and all its resources.

Since :
2.3.2
Remarks:
cloned must be released using maps_place_attribute_destroy().
Parameters:
[in]originThe original place attribute handle
[out]clonedA cloned place attribute handle
Returns:
0 on success, otherwise a negative error value
Return values:
MAPS_ERROR_NONESuccessful
MAPS_ERROR_OUT_OF_MEMORYOut of memory
MAPS_ERROR_INVALID_PARAMETERInvalid parameter
MAPS_ERROR_NOT_SUPPORTEDNot supported
See also:
maps_place_attribute_destroy()

Destroys the place attribute handle and releases all its resources.

This function destroys the place attribute handle and releases all its resources.

Since :
2.3.2
Parameters:
[in]attributeThe place attribute handle to destroy
Returns:
0 on success, otherwise a negative error value
Return values:
MAPS_ERROR_NONESuccessful
MAPS_ERROR_INVALID_PARAMETERInvalid parameter
MAPS_ERROR_NOT_SUPPORTEDNot supported
See also:
maps_place_attribute_clone()
int maps_place_attribute_get_id ( const maps_place_attribute_h  attribute,
char **  id 
)

Gets the place attribute ID.

This function gets the place attribute ID.

Since :
2.3.2
Remarks:
id must be released using free().
Parameters:
[in]attributeThe handle to place attribute
[out]idThe place attribute ID
Returns:
0 on success, otherwise a negative error value
Return values:
MAPS_ERROR_NONESuccessful
MAPS_ERROR_INVALID_PARAMETERInvalid parameter
MAPS_ERROR_NOT_SUPPORTEDNot supported
int maps_place_attribute_get_label ( const maps_place_attribute_h  attribute,
char **  label 
)

Gets the place attribute label.

This function gets the place attribute label.

Since :
2.3.2
Remarks:
label must be released using free().
Parameters:
[in]attributeThe handle to place attribute
[out]labelThe place attribute label
Returns:
0 on success, otherwise a negative error value
Return values:
MAPS_ERROR_NONESuccessful
MAPS_ERROR_INVALID_PARAMETERInvalid parameter
MAPS_ERROR_NOT_SUPPORTEDNot supported
int maps_place_attribute_get_text ( const maps_place_attribute_h  attribute,
char **  text 
)

Gets the place attribute text.

This function gets the place attribute text.

Since :
2.3.2
Remarks:
text must be released using free().
Parameters:
[in]attributeThe handle to place attribute
[out]textThe place attribute text
Returns:
0 on success, otherwise a negative error value
Return values:
MAPS_ERROR_NONESuccessful
MAPS_ERROR_INVALID_PARAMETERInvalid parameter
MAPS_ERROR_NOT_SUPPORTEDNot supported