summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_io_buffered_stream.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-19 15:27:34 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-19 15:30:56 -0200
commitdd5cdda64b5fd3966718af62d417117942e2f323 (patch)
tree28e5ff6f8b5f4fc76fcefce709790b4a91def65b /src/lib/ecore/efl_io_buffered_stream.c
parent25a9e1d886054d3907fb43e3682525b1a3901209 (diff)
more eo simplified to use Eina_Slice instead of pointer to.
Working directly with Eina_Slice is easier than a pointer to it, requires no validation of the pointers and is cheap since it's just putting together size_t + void*. However we can't hint the user of 'const(Eina.Slice)' properties as Eolian is incorrectly generating getters as: const Eina_Slice class_property_get(...) which is makes compilers complain about ignored qualifiers: ../src/lib/ecore/efl_io_copier.eo.h:329:7: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] Leave some TODO so @q66 can fix those.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore/efl_io_buffered_stream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore/efl_io_buffered_stream.c b/src/lib/ecore/efl_io_buffered_stream.c
index a54d125b2d..3b7b4d267b 100644
--- a/src/lib/ecore/efl_io_buffered_stream.c
+++ b/src/lib/ecore/efl_io_buffered_stream.c
@@ -448,20 +448,20 @@ _efl_io_buffered_stream_max_queue_size_output_get(Eo *o EINA_UNUSED, Efl_Io_Buff
448} 448}
449 449
450EOLIAN static void 450EOLIAN static void
451_efl_io_buffered_stream_line_delimiter_set(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd, const Eina_Slice *slice) 451_efl_io_buffered_stream_line_delimiter_set(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd, Eina_Slice slice)
452{ 452{
453 if (!pd->receiver) 453 if (!pd->receiver)
454 { 454 {
455 DBG("%p inner_io=%p (%s) is not Efl.Io.Reader, slice=%p ignored", o, pd->inner_io, efl_class_name_get(efl_class_get(pd->inner_io)), slice); 455 DBG("%p inner_io=%p (%s) is not Efl.Io.Reader, slice=" EINA_SLICE_FMT " ignored", o, pd->inner_io, efl_class_name_get(efl_class_get(pd->inner_io)), EINA_SLICE_PRINT(slice));
456 return; 456 return;
457 } 457 }
458 efl_io_copier_line_delimiter_set(pd->receiver, slice); 458 efl_io_copier_line_delimiter_set(pd->receiver, slice);
459} 459}
460 460
461EOLIAN static const Eina_Slice * 461EOLIAN static Eina_Slice
462_efl_io_buffered_stream_line_delimiter_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 462_efl_io_buffered_stream_line_delimiter_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
463{ 463{
464 if (!pd->receiver) return NULL; 464 if (!pd->receiver) return (Eina_Slice){};
465 return efl_io_copier_line_delimiter_get(pd->receiver); 465 return efl_io_copier_line_delimiter_get(pd->receiver);
466} 466}
467 467