* @brief Retrieves the label information with the given application ID and locale.
*
* @since_tizen 2.3
+ * @remarks The @a label should be released using free().
+ *
* @privlevel public
* @privilege %http://tizen.org/privilege/account.read
* @param[in] app_id The application ID
*
* @pre This function requires an open connection to an account service by account_connect() on tizen 2.3 .\n
* But the account_connect() is not required to use this function since tizen 2.4.
+ *
+ * @par Example
+ * @code
+#include <account.h>
+...
+account_h account;
+
+ret = account_connect();
+if(ret != ACCOUNT_ERROR_NONE) {
+ SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+}
+
+ret = account_create(&account);
+if(ret != ACCOUNT_ERROR_NONE) {
+ SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+}
+...
+char *app_id = "org.tizen.example";
+char *locale = "en_US.utf8";
+char *label = NULL;
+
+ret = account_type_query_label_by_locale(app_id, locale, &label);
+if (ret!= ACCOUNT_ERROR_NONE) {
+ SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+}
+...
+
+if (label) {
+ free(label);
+ label = NULL;
+}
+...
+ret = account_disconnect();
+if(ret != ACCOUNT_ERROR_NONE) {
+ SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+}
+...
+ * @endcode
*/
int account_type_query_label_by_locale(const char *app_id, const char *locale, char **label);