summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_access_text.c
blob: 1db4827c0d2ed327507aaa5ff090078612890fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifdef HAVE_CONFIG_H
  #include "elementary_config.h"
#endif

#define EFL_ACCESS_TEXT_PROTECTED

#include "elm_priv.h"

void
EAPI elm_atspi_text_text_attribute_free(Efl_Access_Text_Attribute *attr)
{
   if (!attr) return;
   if (attr->name) eina_stringshare_del(attr->name);
   if (attr->value) eina_stringshare_del(attr->value);
   free(attr);
}

EAPI void
elm_atspi_text_text_range_free(Efl_Access_Text_Range *range)
{
   free((char*)range->content);
   free(range);
}

#include "efl_access_text.eo.c"