Commit Graph

36 Commits

Author SHA1 Message Date
Cedric BAIL f82152f150 eio: fix memory leak when using file associate.
SVN revision: 75854
2012-08-30 08:52:15 +00:00
Leandro Pereira d625e4d386 Reverting r72552.
SVN revision: 72607
2012-06-21 13:56:42 +00:00
Leandro Pereira ed4fd6b877 eio: Fix memory leaks spotted by clang static analyzer
SVN revision: 72552
2012-06-20 19:34:05 +00:00
Gustavo Sverzut Barbieri 74b38070b6 use proper filter callback type for eio_dir_stat_ls().
The user is not supposed to change info as it's already fully
populated by stat().



SVN revision: 72551
2012-06-20 18:11:20 +00:00
Vincent Torri db65eb43d7 whitespaces--
SVN revision: 69819
2012-03-31 10:44:19 +00:00
Vincent Torri 71f42dcebc Eio: fix shadow var warnings and make it compile on Windows. Needs more love though
SVN revision: 69809
2012-03-31 06:30:08 +00:00
Cedric BAIL 76b3828b8f eio: take into account filter for subdirectory to.
SVN revision: 68269
2012-02-22 12:46:51 +00:00
Cedric BAIL 422de4f2e5 eio: change callback prototype.
SVN revision: 68265
2012-02-22 11:51:45 +00:00
Cedric BAIL 6db00c119d eio: add eio_dir_direct_ls.
SVN revision: 68254
2012-02-22 09:30:43 +00:00
Cedric BAIL ac0c389ff9 eio: fix memory leak in eio_dir_stat_ls.
SVN revision: 68163
2012-02-20 14:06:04 +00:00
Cedric BAIL 2e21c6899f eio: move documentation into header like other EFL library.
NOTE: need some help to finish splitting this API in a more meaningfull sense.

TODO: Fix a few FIXME and update monitoring backend to work on most system.


SVN revision: 65840
2011-12-03 13:21:07 +00:00
Cedric BAIL d6eea5fcc8 eio: improve eio_dir_stat_ls to work with Eio_Associate and make it faster.
SVN revision: 62939
2011-08-29 11:20:27 +00:00
Cedric BAIL 9035d1f8c0 eio: fix api change.
SVN revision: 60600
2011-06-22 16:09:14 +00:00
Cedric BAIL d41e80a29c eio: add eio_file_container_get.
SVN revision: 59646
2011-05-24 10:41:37 +00:00
Cedric BAIL 25959fb6ed eio: fix eio shadow warning.
SVN revision: 58906
2011-04-25 17:01:26 +00:00
Cedric BAIL 79dbc39b5c eio: destroy leaf before root.
SVN revision: 58732
2011-04-19 15:27:21 +00:00
Cedric BAIL 8fe5c5ce54 eio: make it easy to filter content during eio_dir_* operation.
SVN revision: 57631
2011-03-09 16:21:11 +00:00
Cedric BAIL fc2aaf9935 eio: fix issue on 32bits system.
SVN revision: 57626
2011-03-09 14:53:55 +00:00
Cedric BAIL c6cb315e35 eio: add eio_dir_stat_ls.
SVN revision: 57129
2011-02-17 15:59:07 +00:00
Michael BOUCHAUD 29b6b151b1 eio: don't forget to init the list of links. Avoid segfault with eio_dir_copy and maybee(surely) others function
SVN revision: 55848
2011-01-04 16:58:58 +00:00
Cedric BAIL 581a3c66e2 * eio: fix API to match the rest of the EFL API.
SVN revision: 54504
2010-11-12 14:08:01 +00:00
Cedric BAIL e61f8560ea * ecore: break Ecore_Thread API once and for all to make it consistent.
SVN revision: 54502
2010-11-12 13:28:19 +00:00
Cedric BAIL 7e9c729ce2 * eio: fix recursion by detecting link and recreating them.
SVN revision: 54123
2010-11-03 12:35:21 +00:00
Carsten Haitzler 46abf6fc81 use new type member.
SVN revision: 54018
2010-10-30 05:59:39 +00:00
Vincent Torri 600053d7a9 [eio] improve documentation layout and add a tutorial for
eio_dir_copy()

SVN revision: 53704
2010-10-21 05:03:23 +00:00
Vincent Torri 3a5d43ea9c [eio] reorganize code like eina, clean up doc
SVN revision: 53688
2010-10-20 19:17:30 +00:00
Cedric BAIL ff69a72f47 * eio: add eio_dir_unlink.
SVN revision: 53664
2010-10-20 13:48:13 +00:00
Cedric BAIL ab4a53f091 * eio: add eio_dir_move.
SVN revision: 53657
2010-10-20 12:09:58 +00:00
Cedric BAIL f3b720812e * e, eio: fix ecore_thread_run breakage.
SVN revision: 53371
2010-10-13 17:46:02 +00:00
Carsten Haitzler 8cde3d4ba6 ok... bad eio hackers. you know setting things like gnu_source and
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-13 00:26:12 +00:00
Vincent Torri 0304666261 improve doc. Now, cedric, it's up to you :p
SVN revision: 53308
2010-10-12 14:59:30 +00:00
Gustavo Sverzut Barbieri 98e0d9f009 safer and louder about errors.
SVN revision: 53204
2010-10-08 20:14:21 +00:00
Eduardo de Barros Lima 9910581b1c Eio: No need to #define _GNU_SOURCE
SVN revision: 53165
2010-10-07 21:06:54 +00:00
Cedric BAIL 71ae9cd4e5 * eio: reduce code duplication.
SVN revision: 53094
2010-10-06 09:54:00 +00:00
Cedric BAIL 96172a4066 * eio: fix coding style, the other way.
SVN revision: 53071
2010-10-05 16:57:51 +00:00
Cedric BAIL b3d7e3423f * eio: add eio_dir_copy.
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 16:46:41 +00:00