eolian: rename path/filename retrieval APIs
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Tue, 27 Feb 2018 15:11:56 +0000 (16:11 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 11:10:42 +0000 (20:10 +0900)
src/lib/eolian/Eolian.h
src/lib/eolian/eolian_database.c

index 66cb480..a47115f 100644 (file)
@@ -86,6 +86,9 @@ extern "C" {
 
 /* State information
  *
+ * Possible to cast to Eolian_Unit and use as such, as this represents
+ * a master unit as well as other state.
+ *
  * @ingroup Eolian
  */
 typedef struct _Eolian_State Eolian_State;
@@ -531,6 +534,58 @@ EAPI Eina_Bool eolian_state_directory_add(Eolian_State *state, const char *dir);
 EAPI Eina_Bool eolian_state_system_directory_add(Eolian_State *state);
 
 /*
+ * @brief Get an iterator to all .eo file names with paths.
+ *
+ * @param[in] state The Eolian state.
+ *
+ * @see eolian_state_eo_files_get
+ * @see eolian_state_eot_file_paths_get
+ * @see eolian_state_eot_files_get
+ *
+ * @ingroup Eolian
+ */
+EAPI Eina_Iterator *eolian_state_eo_file_paths_get(const Eolian_State *state);
+
+/*
+ * @brief Get an iterator to all .eot file names with paths.
+ *
+ * @param[in] state The Eolian state.
+ *
+ * @see eolian_state_eo_files_get
+ * @see eolian_state_eo_file_paths_get
+ * @see eolian_state_eot_files_get
+ *
+ * @ingroup Eolian
+ */
+EAPI Eina_Iterator *eolian_state_eot_file_paths_get(const Eolian_State *state);
+
+/*
+ * @brief Get an iterator to all .eo file names (without paths).
+ *
+ * @param[in] state The Eolian state.
+ *
+ * @see eolian_state_eo_file_paths_get
+ * @see eolian_state_eot_file_paths_get
+ * @see eolian_state_eot_files_get
+ *
+ * @ingroup Eolian
+ */
+EAPI Eina_Iterator *eolian_state_eo_files_get(const Eolian_State *state);
+
+/*
+ * @brief Get an iterator to all .eot file names (without paths).
+ *
+ * @param[in] state The Eolian state.
+ *
+ * @see eolian_state_eo_file_paths_get
+ * @see eolian_stete_eot_file_paths_get
+ * @see eolian_state_eo_files_get
+ *
+ * @ingroup Eolian
+ */
+EAPI Eina_Iterator *eolian_state_eot_files_get(const Eolian_State *state);
+
+/*
  * @brief Parse the given .eo or .eot file and fill the database.
  *
  * The input can be either a full path to the file or only a filename.
@@ -627,58 +682,6 @@ EAPI Eina_Iterator *eolian_unit_children_get(const Eolian_Unit *unit);
 EAPI const char *eolian_unit_file_get(const Eolian_Unit *unit);
 
 /*
- * @brief Get an iterator to all .eo file names with paths.
- *
- * @param[in] state The Eolian state.
- *
- * @see eolian_all_eo_files_get
- * @see eolian_all_eot_file_paths_get
- * @see eolian_all_eot_files_get
- *
- * @ingroup Eolian
- */
-EAPI Eina_Iterator *eolian_all_eo_file_paths_get(const Eolian_State *state);
-
-/*
- * @brief Get an iterator to all .eot file names with paths.
- *
- * @param[in] state The Eolian state.
- *
- * @see eolian_all_eo_files_get
- * @see eolian_all_eo_file_paths_get
- * @see eolian_all_eot_files_get
- *
- * @ingroup Eolian
- */
-EAPI Eina_Iterator *eolian_all_eot_file_paths_get(const Eolian_State *state);
-
-/*
- * @brief Get an iterator to all .eo file names (without paths).
- *
- * @param[in] state The Eolian state.
- *
- * @see eolian_all_eo_file_paths_get
- * @see eolian_all_eot_file_paths_get
- * @see eolian_all_eot_files_get
- *
- * @ingroup Eolian
- */
-EAPI Eina_Iterator *eolian_all_eo_files_get(const Eolian_State *state);
-
-/*
- * @brief Get an iterator to all .eot file names (without paths).
- *
- * @param[in] state The Eolian state.
- *
- * @see eolian_all_eo_file_paths_get
- * @see eolian_all_eot_file_paths_get
- * @see eolian_all_eo_files_get
- *
- * @ingroup Eolian
- */
-EAPI Eina_Iterator *eolian_all_eot_files_get(const Eolian_State *state);
-
-/*
  * @brief Gets a class by its name
  *
  * @param[in] unit the unit to look in
@@ -2675,6 +2678,18 @@ EAPI Eina_Bool eolian_all_eo_files_parse(Eolian_State *state);
 /* DEPRECATED */
 EAPI Eina_Bool eolian_all_eot_files_parse(Eolian_State *state);
 
+/* DEPRECATED */
+EAPI Eina_Iterator *eolian_all_eo_file_paths_get(const Eolian_State *state);
+
+/* DEPRECATED */
+EAPI Eina_Iterator *eolian_all_eot_file_paths_get(const Eolian_State *state);
+
+/* DEPRECATED */
+EAPI Eina_Iterator *eolian_all_eo_files_get(const Eolian_State *state);
+
+/* DEPRECATED */
+EAPI Eina_Iterator *eolian_all_eot_files_get(const Eolian_State *state);
+
 #endif
 
 /**
index d4c0bfb..6491f64 100644 (file)
@@ -662,6 +662,58 @@ eolian_system_directory_scan(Eolian_State *state)
    return eolian_state_system_directory_add(state);
 }
 
+EAPI Eina_Iterator *
+eolian_state_eot_files_get(const Eolian_State *state)
+{
+   if (!state) return NULL;
+   return eina_hash_iterator_key_new(state->filenames_eot);
+}
+
+EAPI Eina_Iterator *
+eolian_state_eo_files_get(const Eolian_State *state)
+{
+   if (!state) return NULL;
+   return eina_hash_iterator_key_new(state->filenames_eo);
+}
+
+EAPI Eina_Iterator *
+eolian_state_eot_file_paths_get(const Eolian_State *state)
+{
+   if (!state) return NULL;
+   return eina_hash_iterator_data_new(state->filenames_eot);
+}
+
+EAPI Eina_Iterator *
+eolian_state_eo_file_paths_get(const Eolian_State *state)
+{
+   if (!state) return NULL;
+   return eina_hash_iterator_data_new(state->filenames_eo);
+}
+
+EAPI Eina_Iterator *
+eolian_all_eot_files_get(const Eolian_State *state)
+{
+   return eolian_state_eot_files_get(state);
+}
+
+EAPI Eina_Iterator *
+eolian_all_eo_files_get(const Eolian_State *state)
+{
+   return eolian_state_eo_files_get(state);
+}
+
+EAPI Eina_Iterator *
+eolian_all_eot_file_paths_get(const Eolian_State *state)
+{
+   return eolian_state_eot_file_paths_get(state);
+}
+
+EAPI Eina_Iterator *
+eolian_all_eo_file_paths_get(const Eolian_State *state)
+{
+   return eolian_state_eo_file_paths_get(state);
+}
+
 static Eolian_Unit *
 _eolian_file_parse_nodep(Eolian_Unit *parent, const char *filepath)
 {
@@ -912,31 +964,3 @@ database_class_to_filename(const char *cname)
 
    return ret;
 }
-
-EAPI Eina_Iterator *
-eolian_all_eot_files_get(const Eolian_State *state)
-{
-   if (!state) return NULL;
-   return eina_hash_iterator_key_new(state->filenames_eot);
-}
-
-EAPI Eina_Iterator *
-eolian_all_eo_files_get(const Eolian_State *state)
-{
-   if (!state) return NULL;
-   return eina_hash_iterator_key_new(state->filenames_eo);
-}
-
-EAPI Eina_Iterator *
-eolian_all_eot_file_paths_get(const Eolian_State *state)
-{
-   if (!state) return NULL;
-   return eina_hash_iterator_data_new(state->filenames_eot);
-}
-
-EAPI Eina_Iterator *
-eolian_all_eo_file_paths_get(const Eolian_State *state)
-{
-   if (!state) return NULL;
-   return eina_hash_iterator_data_new(state->filenames_eo);
-}