fix a few warnings i get on 64bit than didnt pop up on 32, revert edje
authorraster <raster>
Fri, 4 Nov 2011 23:19:14 +0000 (23:19 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 Nov 2011 23:19:14 +0000 (23:19 +0000)
module load api break -back to eina_bool return. add some @sinces even
if there are no docs.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64751 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_multisense_convert.c
src/lib/Edje.h
src/lib/edje_module.c
src/lib/edje_multisense.c
src/lib/edje_private.h
src/modules/eet_snd_reader/eet_snd_reader.c

index cf74be2..03578e7 100644 (file)
@@ -156,7 +156,7 @@ _edje_multisense_encode_to_flac(char *snd_path, SF_INFO sfinfo)
    if (ok)
      {
         init_status = FLAC__stream_encoder_init_file(encoder, snd_path, NULL,
-                                                     (void *)(total_samples));
+                                                     (void *)(long)(total_samples));
         if (init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK)
           {
              ERR("ERROR: unable to initialize FLAC encoder: %s\n",
index a38b27b..2ea3488 100644 (file)
@@ -615,8 +615,8 @@ typedef enum _Edje_Action_Type
    EDJE_ACTION_TYPE_FOCUS_OBJECT        = 10,
    EDJE_ACTION_TYPE_PARAM_COPY          = 11,
    EDJE_ACTION_TYPE_PARAM_SET           = 12,
-   EDJE_ACTION_TYPE_SOUND_SAMPLE        = 13,
-   EDJE_ACTION_TYPE_SOUND_TONE          = 14,
+   EDJE_ACTION_TYPE_SOUND_SAMPLE        = 13, /**< @since 1.1 */
+   EDJE_ACTION_TYPE_SOUND_TONE          = 14, /**< @since 1.1 */
    EDJE_ACTION_TYPE_LAST                = 15
 } Edje_Action_Type;
 
@@ -3801,7 +3801,7 @@ EAPI const Edje_External_Param_Info *edje_external_param_info_get   (const char
  */
    EAPI const Edje_External_Type       *edje_external_type_get         (const char *type_name);
 
-   EAPI Eina_Module            *edje_module_load                (const char *module);
+   EAPI Eina_Bool               edje_module_load                (const char *module);
    EAPI const Eina_List        *edje_available_modules_get      (void);
 
    /* perspective info for maps inside edje objects */
index e84cb97..effcee1 100644 (file)
@@ -14,9 +14,16 @@ Eina_List *_modules_found = NULL;
 # define EDJE_MODULE_NAME "module.so"
 #endif
 
-EAPI Eina_Module *
+EAPI Eina_Bool
 edje_module_load(const char *module)
 {
+   if (_edje_module_handle_load(module)) return EINA_TRUE;
+   return EINA_FALSE;
+}
+
+Eina_Module *
+_edje_module_handle_load(const char *module)
+{
    const char *path;
    Eina_List *l;
    Eina_Module *em = NULL;
index 3f0044a..a41db54 100644 (file)
@@ -88,7 +88,7 @@ init_multisense_environment(void)
    else
      strcpy(ms_factory, "multisense_factory");
    
-   m = edje_module_load(ms_factory);
+   m = _edje_module_handle_load(ms_factory);
    if (!m) goto err;
    
 #ifdef HAVE_LIBREMIX
@@ -197,7 +197,7 @@ static RemixBase *
 edje_remix_tone_create(Multisense_Data *msdata, Edje*ed, Edje_Tone_Action *action)
 {
    Edje_Sound_Tone *tone;
-   RemixSquareTone *square;
+   RemixSquareTone *square = NULL;
    unsigned int i;
 
    if ((!ed) || (!ed->file) || (!ed->file->sound_dir))
index 0d58900..4f626b2 100644 (file)
@@ -1908,8 +1908,9 @@ void _edje_external_recalc_apply(Edje *ed, Edje_Real_Part *ep,
 void *_edje_external_params_parse(Evas_Object *obj, const Eina_List *params);
 void _edje_external_parsed_params_free(Evas_Object *obj, void *params);
 
-EAPI void _edje_module_init();
-EAPI void _edje_module_shutdown();
+Eina_Module *_edje_module_handle_load(const char *module);
+void _edje_module_init();
+void _edje_module_shutdown();
 
 static inline Eina_Bool
 edje_program_is_strncmp(const char *str)
@@ -1936,6 +1937,7 @@ edje_program_is_strrncmp(const char *str)
    return EINA_TRUE;
 }
 
+/* used by edje_cc - private still */
 EAPI void _edje_program_insert(Edje_Part_Collection *ed, Edje_Program *p);
 EAPI void _edje_program_remove(Edje_Part_Collection *ed, Edje_Program *p);
 
index 3df4912..3bfa4bb 100644 (file)
@@ -133,7 +133,7 @@ remix_init_resampler_data(RemixEnv *env, RemixBase *base)
 static RemixBase *
 remix_eet_sndfile_create(RemixEnv *env, RemixBase *sndfile, const char *path, const char *sound_id, const double speed)
 {
-   SF_VIRTUAL_IO *eet_vio;
+   SF_VIRTUAL_IO *eet_vio = NULL;
    SndInstanceData *si;
    const void *sound_data;
    int sound_size;