Changes that allows built unittest files 37/240237/7
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Tue, 4 Aug 2020 12:30:27 +0000 (14:30 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 12 Aug 2020 10:37:51 +0000 (12:37 +0200)
Clang was not able to build project as LC_ALL was not defined.
Remove _GNU_SOURCE from headers.
Internal structures must be moved to headers to compile mockups.

Change-Id: Ife532459f128a46e804c655741a10f1bf111aa29

include/flat_navi.h
include/navigator.h
include/screen_reader_spi.h
include/symbols.h
src/flat_navi.c
src/navigator.c
src/screen_reader_spi.c
src/screen_reader_vconf.c

index 9be54781ab37646026a460c440a5a332db555fac..ba8d1441f5aae1e31b4d0b593dcb71ed2b96d422 100644 (file)
@@ -6,6 +6,8 @@
 #include <stdbool.h>
 
 typedef struct _FlatNaviContext FlatNaviContext;
+typedef enum { SEARCH_FORWARD = 1, SEARCH_BACKWARD = 2 } search_direction;
+typedef Eina_Bool(*StopConditionCb)(AtspiAccessible *);
 
 /**
  * @brief Allocates new FlatNaviContext.
index 5aa20d5d8c8edc062665d2f87beb35bd019510d5..96d7b7333e33d4be15669ee9af34cbceea48f635 100644 (file)
@@ -5,6 +5,15 @@
 
 #include <flat_navi.h>
 
+typedef enum {
+       HIGHLIGHT_POINT,
+       HIGHLIGHT_FIRST,
+       HIGHLIGHT_LAST,
+       HIGHLIGHT_NEXT,
+       HIGHLIGHT_PREV,
+       HIGHLIGHT_POINT_AGAIN
+} Highlight_Type;
+
 typedef struct _NavigatorData NavigatorData;
 
 /**
index 5f1d84724a246e4149a66ef2f7c4ceb8e14715ed..36c7a331876d809ea4753d8aede8cdf061a14648 100644 (file)
@@ -4,6 +4,7 @@
 #include <atspi/atspi.h>
 
 typedef struct SpiDataImpl SpiData;
+typedef struct SignalHandlingTimerDataImpl SignalHandlingTimerData;
 
 SpiData* spi_init(void);
 void spi_shutdown(SpiData *spi_data);
index 89f202e4e290b4bd6e22d5155086f33ac7ed83d9..0b20e175a6bb0ba47abeda432b71cfb2ec3ad1df 100644 (file)
@@ -1,12 +1,11 @@
 #ifndef SYMBOLS_H_
 #define SYMBOLS_H_
 
-#define _GNU_SOURCE
 #include <glib.h>
 
 /**
  * @brief Gets descriptive value of text symbol
  */
-extern const gchar *symbol_lookup(const gchar *text);
+const gchar *symbol_lookup(const gchar *text);
 
 #endif /* SYMBOLS_H_ */
index fda9f73e727a4ef36a8b7ab44c1399fce98cd4ca..8301fc760b8b8e174b158a9be08a36ae61147cc5 100644 (file)
@@ -301,9 +301,6 @@ Eina_Bool flat_navi_context_current_at_x_y_set(FlatNaviContext *ctx, gint x_cord
 }
 #endif
 
-typedef enum { SEARCH_FORWARD = 1, SEARCH_BACKWARD = 2 } search_direction;
-typedef Eina_Bool(*StopConditionCb)(AtspiAccessible *);
-
 AtspiAccessible *_directional_depth_first_search(AtspiAccessible *root,
                AtspiAccessible *start,
                search_direction direction,
index f5839be89430e361931b628ae1f5c40c22d64580..27d9cbf8e9167d4983f1354841b8bf238910f68b 100644 (file)
@@ -65,14 +65,6 @@ typedef struct {
 /* The Highlight_Type will be used for access object working for embedded
 toolkit such as Dali does not support at-spi interface. This kind of work
 will make screen-reader be slow. They have to implement the interface */
-typedef enum {
-       HIGHLIGHT_POINT,
-       HIGHLIGHT_FIRST,
-       HIGHLIGHT_LAST,
-       HIGHLIGHT_NEXT,
-       HIGHLIGHT_PREV,
-       HIGHLIGHT_POINT_AGAIN
-} Highlight_Type;
 
 struct _NavigatorData {
        point_t gesture_start_p;
index de65b288364b3bffb1be4562254bdb77f20dc2d1..e0c20cddcabde5e3cbc781717b09b7fe8186e679 100644 (file)
 
 #define SIGNAL_HANDLING_TIMEOUT 0.3
 
-typedef struct {
+struct SignalHandlingTimerDataImpl {
        AtspiAccessible *obj;
        char *text_to_read, *desc_to_read;
        Eina_Bool want_discard_previous_reading;
        Eina_Bool discardable;
        Eina_Bool inside_cb;
        SpiData *spi;
-} SignalHandlingTimerData;
+};
 
 struct SpiDataImpl {
        Eina_Bool ignore_next_caret_move;
index d16a0e5ac1d7d6b4876944da1157483b1b5e4de7..1068545bf4fa8794f0b78d335ca0baf2da6c002b 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <appcore-efl.h>
+#include <locale.h>
 #include <vconf.h>
 
 #include <logger.h>