path: root/legacy/eio (follow)
AgeCommit message (Collapse)Author
2011-01-04eio: don't forget to init the list of links. Avoid segfault with ↵Michael BOUCHAUD
eio_dir_copy and maybee(surely) others function SVN revision: 55848
2010-12-08eio: move 'typedef enum' after 'enum' to compil with g++ (from Mikael Sans)Michael BOUCHAUD
SVN revision: 55372
2010-12-04 * eio: snapidoo too !Cedric BAIL
SVN revision: 55241
2010-12-03 * eio: define PATH_MAX if not available.Cedric BAIL
SVN revision: 55230
2010-11-12 * eio, ethumb and elementary: snapshot increase.Cedric BAIL
SVN revision: 54508
2010-11-12 * eio: fix API to match the rest of the EFL API.Cedric BAIL
SVN revision: 54504
2010-11-12 * ecore: break Ecore_Thread API once and for all to make it consistent.Cedric BAIL
SVN revision: 54502
2010-11-11 * eio: remove not needed file.Cedric BAIL
SVN revision: 54473
2010-11-03 * eio: fix recursion by detecting link and recreating them.Cedric BAIL
SVN revision: 54123
2010-11-02 * eio: add eio_file_stat_ls.Cedric BAIL
SVN revision: 54106
2010-11-02 * eina: remove dirent so apps don't rely on non portable code.Cedric BAIL
SVN revision: 54103
2010-10-30 * eio: fix shadow symbol.Cedric BAIL
SVN revision: 54033
2010-10-30use new type member.Carsten Haitzler
SVN revision: 54018
2010-10-29 * eio: oops forgotten file.Cedric BAIL
SVN revision: 53990
2010-10-29 * eio: inline accessor.Cedric BAIL
SVN revision: 53988
2010-10-29 * eio: break Eio error callback API to match the rest of the API.Cedric BAIL
SVN revision: 53986
2010-10-28 * eio: more doxy fix.Cedric BAIL
SVN revision: 53966
2010-10-28 * eio: fix doc.Cedric BAIL
SVN revision: 53964
2010-10-28 * eio: add small helper.Cedric BAIL
SVN revision: 53962
2010-10-27 * eio: add eio_file_ls() tutorial.Cedric BAIL
SVN revision: 53915
2010-10-22[eio] add check on some functions (will be used later) andVincent Torri
add native win32 mutex code. Question: with pthread, if a mutex is initialized with PTHREAD_MUTEX_INITIALIZER, should it be destroyed with pthread_mutex_destroy() ? SVN revision: 53772
2010-10-22 * eio: fix eio.pcCedric BAIL
SVN revision: 53762
2010-10-21[eio] check if threads, grp.h and fchmod() are availableVincent Torri
SVN revision: 53723
2010-10-21[eio] _GNU_SOURCE already defined in config.hVincent Torri
SVN revision: 53721
2010-10-21[eio] improve documentation layout and add a tutorial forVincent Torri
eio_dir_copy() SVN revision: 53704
2010-10-20[eio] reorganize code like eina, clean up docVincent Torri
SVN revision: 53688
2010-10-20[eio] exclude eio_private.h from the docVincent Torri
SVN revision: 53687
2010-10-20[eio] take into account eio.doxVincent Torri
SVN revision: 53686
2010-10-20 * eio: add eio_file_chmod and eio_file_chown.Cedric BAIL
SVN revision: 53678
2010-10-20 * eio: improve doc.Cedric BAIL
SVN revision: 53673
2010-10-20 * eio: add eio_dir_unlink.Cedric BAIL
SVN revision: 53664
2010-10-20 * eio: more doxy fix.Cedric BAIL
SVN revision: 53658
2010-10-20 * eio: add eio_dir_move.Cedric BAIL
SVN revision: 53657
2010-10-20 * eio: small doxy fix.Cedric BAIL
SVN revision: 53656
2010-10-13 * e, eio: fix ecore_thread_run breakage.Cedric BAIL
SVN revision: 53371
2010-10-13 * eio: remove unecessary call.Cedric BAIL
SVN revision: 53365
2010-10-13 * eio: fix use of ecore_thread_*run.Cedric BAIL
SVN revision: 53348
2010-10-13init threads as we use them!Gustavo Sverzut Barbieri
SVN revision: 53342
2010-10-13seems that the other way was not enough.Gustavo Sverzut Barbieri
I was still reaching uninitialized usage and it does make sense, as the parent thread could be postponed until the new is started, then the scanner/worker thread hits an error (ie: directory permission denied) and it is cancelled before the main thread had time to get the thread attribution (common->thread). I'd like someone to look at it. Probably this is NOT the right way to fix. Likely what we should do is send a "ready! start working" command from the main thread to the worker thread and avoid such thing. ==5848== Conditional jump or move depends on uninitialised value(s) ==5848== at 0x42808CD: ecore_thread_cancel (ecore_thread.c:534) ==5848== by 0x4238558: eio_file_thread_error (eio_single.c:35) ==5848== by 0x42368FC: _eio_file_direct_heavy (eio_file.c:78) ==5848== by 0x42800F3: _ecore_feedback_job (ecore_thread.c:247) ==5848== by 0x4280398: _ecore_thread_worker (ecore_thread.c:317) ==5848== by 0x41FE16AE: start_thread (in /lib/ ==5848== by 0x41F3295D: clone (in /lib/ ==5848== Uninitialised value was created by a heap allocation ==5848== at 0x400793F: malloc (in /usr/lib/valgrind/ ==5848== by 0x4237991: eio_file_direct_ls (eio_file.c:566) ==5848== by 0x8051C81: ephoto_directory_thumb_add (ephoto_directory_thumb.c:131) ==5848== by 0x804D4AB: _ephoto_thumb_dir_icon_get (ephoto_thumb_browser.c:75) ==5848== by 0x405F4C8: _item_realize (elm_gengrid.c:807) ==5848== by 0x405FE77: _item_place (elm_gengrid.c:980) ==5848== by 0x40610F6: _pan_calculate (elm_gengrid.c:1199) ==5848== by 0x418CA38: evas_call_smarts_calculate (evas_object_smart.c:843) ==5848== by 0x41B23B2: evas_render_updates_internal (evas_render.c:971) ==5848== by 0x41B3DA1: evas_render_updates (evas_render.c:1414) ==5848== by 0x42E4550: _ecore_evas_x_render (ecore_evas_x.c:406) ==5848== by 0x42DDD2C: _ecore_evas_idle_enter (ecore_evas.c:47) SVN revision: 53340
2010-10-13fix unitialized error.Gustavo Sverzut Barbieri
==17972== Use of uninitialised value of size 4 ==17972== at 0x42918DB: ecore_thread_cancel (ecore_thread.c:536) ==17972== by 0x4249558: eio_file_thread_error (eio_single.c:35) ==17972== by 0x42478FC: _eio_file_direct_heavy (eio_file.c:78) ==17972== by 0x42910F3: _ecore_feedback_job (ecore_thread.c:247) ==17972== by 0x4291398: _ecore_thread_worker (ecore_thread.c:317) ==17972== by 0x41FE16AE: start_thread (in /lib/ ==17972== by 0x41F3295D: clone (in /lib/ ==17972== Uninitialised value was created by a heap allocation ==17972== at 0x400793F: malloc (in /usr/lib/valgrind/ ==17972== by 0x4248991: eio_file_direct_ls (eio_file.c:566) ==17972== by 0x8050B8E: ephoto_directory_thumb_add (ephoto_directory_thumb.c:127) ==17972== by 0x4061570: _item_realize (elm_gengrid.c:807) ==17972== by 0x4061E27: _item_place (elm_gengrid.c:980) ==17972== by 0x4062875: _pan_calculate (elm_gengrid.c:1199) ==17972== by 0x419DA38: evas_call_smarts_calculate (evas_object_smart.c:843) ==17972== by 0x41C33B2: evas_render_updates_internal (evas_render.c:971) ==17972== by 0x41C4DA1: evas_render_updates (evas_render.c:1414) ==17972== by 0x42F5550: _ecore_evas_x_render (ecore_evas_x.c:406) ==17972== by 0x42EED2C: _ecore_evas_idle_enter (ecore_evas.c:47) ==17972== by 0x428C85F: _ecore_idle_enterer_call (ecore_idle_enterer.c:129) SVN revision: 53336
2010-10-13ok... bad eio hackers. you know setting things like gnu_source andCarsten Haitzler
file_offset_bits .. CHANGES the size of structs like dirent? so if u do it differently in different c files... u end up with.. GASP different structs with different sizes! dont do this. unify everything into eio_private.h so its at least CONSISTENT for eio's internals. SVN revision: 53322
2010-10-12improve doc. Now, cedric, it's up to you :pVincent Torri
SVN revision: 53308
2010-10-11add doc supportVincent Torri
SVN revision: 53265
2010-10-11 * eio: improve allocation code for eio_file_direct_ls.Cedric BAIL
SVN revision: 53262
2010-10-08safer and louder about errors.Gustavo Sverzut Barbieri
SVN revision: 53204
2010-10-07Eio: No need to #define _GNU_SOURCEEduardo de Barros Lima
SVN revision: 53165
2010-10-06 * eio: reduce code duplication.Cedric BAIL
SVN revision: 53094
2010-10-05 * eio: fix coding style, the other way.Cedric BAIL
SVN revision: 53071
2010-10-05 * eio: add eio_dir_copy.Cedric BAIL
Little example on how to use it : #include <Ecore.h> #include <Eio.h> static void _test_notify_cb(void *data, const Eio_Progress *info) { switch (info->op) { case EIO_FILE_COPY: printf("[%s] %f%%\n", info->dest, info->percent); break; case EIO_DIR_COPY: printf("global [%li/%li] %f%%\n", info->current, info->max, info->percent); break; } } static void _test_done_cb(void *data) { printf("copy done\n"); ecore_main_loop_quit(); } static void _test_error_cb(int error, void *data) { fprintf(stderr, "error: [%s]\n", strerror(error)); ecore_main_loop_quit(); } int main(int argc, char **argv) { Eio_File *cp; if (argc != 3) { fprintf(stderr, "eio_cp source_file destination_file\n"); return -1; } ecore_init(); eio_init(); cp = eio_dir_copy(argv[1], argv[2], _test_notify_cb, _test_done_cb, _test_error_cb, NULL); ecore_main_loop_begin(); eio_shutdown(); ecore_shutdown(); return 0; } NOTE: be aware that it's your duty to provide the "right target". Meaning that copying to '.' will copy the content directly inside '.' and not in a subdirectory. SVN revision: 53069
2010-10-05 * eio: follow efl coding style.Cedric BAIL
SVN revision: 53066