summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_io_buffered_stream.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-04-17 20:09:44 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-04-17 20:31:55 +0200
commitfcae7cab276c2d3b19bb913ad908b67b7dd33089 (patch)
tree7008ebc815184309ccc284c9e7e1b05abbb55028 /src/lib/ecore/efl_io_buffered_stream.c
parente50b43d02fdb0b608f2c99014357c95a1a746c43 (diff)
eolian gen: enable constness generation on property getter impls
This changes a lot of things all across the EFL. Previously, methods tagged @const had both their external prototype and internal impl generated with const on object, while property getters only had const on the external API. This is now changed and it all has const everywhere. Ref T6859.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore/efl_io_buffered_stream.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/ecore/efl_io_buffered_stream.c b/src/lib/ecore/efl_io_buffered_stream.c
index 20b76da378..a787283002 100644
--- a/src/lib/ecore/efl_io_buffered_stream.c
+++ b/src/lib/ecore/efl_io_buffered_stream.c
@@ -218,13 +218,13 @@ _efl_io_buffered_stream_efl_io_closer_close(Eo *o, Efl_Io_Buffered_Stream_Data *
218} 218}
219 219
220EOLIAN static Eina_Bool 220EOLIAN static Eina_Bool
221_efl_io_buffered_stream_efl_io_closer_closed_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 221_efl_io_buffered_stream_efl_io_closer_closed_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
222{ 222{
223 return pd->closed || efl_io_closer_closed_get(pd->inner_io); 223 return pd->closed || efl_io_closer_closed_get(pd->inner_io);
224} 224}
225 225
226EOLIAN static Eina_Bool 226EOLIAN static Eina_Bool
227_efl_io_buffered_stream_efl_io_closer_close_on_exec_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 227_efl_io_buffered_stream_efl_io_closer_close_on_exec_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
228{ 228{
229 return efl_io_closer_close_on_exec_get(pd->inner_io); 229 return efl_io_closer_close_on_exec_get(pd->inner_io);
230} 230}
@@ -236,7 +236,7 @@ _efl_io_buffered_stream_efl_io_closer_close_on_exec_set(Eo *o EINA_UNUSED, Efl_I
236} 236}
237 237
238EOLIAN static Eina_Bool 238EOLIAN static Eina_Bool
239_efl_io_buffered_stream_efl_io_closer_close_on_destructor_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 239_efl_io_buffered_stream_efl_io_closer_close_on_destructor_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
240{ 240{
241 return efl_io_closer_close_on_destructor_get(pd->inner_io); 241 return efl_io_closer_close_on_destructor_get(pd->inner_io);
242} 242}
@@ -266,7 +266,7 @@ _efl_io_buffered_stream_efl_io_reader_read(Eo *o, Efl_Io_Buffered_Stream_Data *p
266} 266}
267 267
268EOLIAN static Eina_Bool 268EOLIAN static Eina_Bool
269_efl_io_buffered_stream_efl_io_reader_can_read_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 269_efl_io_buffered_stream_efl_io_reader_can_read_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
270{ 270{
271 return pd->can_read; 271 return pd->can_read;
272} 272}
@@ -281,7 +281,7 @@ _efl_io_buffered_stream_efl_io_reader_can_read_set(Eo *o, Efl_Io_Buffered_Stream
281} 281}
282 282
283EOLIAN static Eina_Bool 283EOLIAN static Eina_Bool
284_efl_io_buffered_stream_efl_io_reader_eos_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 284_efl_io_buffered_stream_efl_io_reader_eos_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
285{ 285{
286 return pd->eos; 286 return pd->eos;
287} 287}
@@ -332,7 +332,7 @@ _efl_io_buffered_stream_efl_io_writer_write(Eo *o, Efl_Io_Buffered_Stream_Data *
332} 332}
333 333
334EOLIAN static Eina_Bool 334EOLIAN static Eina_Bool
335_efl_io_buffered_stream_efl_io_writer_can_write_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 335_efl_io_buffered_stream_efl_io_writer_can_write_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
336{ 336{
337 return pd->can_write; 337 return pd->can_write;
338} 338}
@@ -412,7 +412,7 @@ _efl_io_buffered_stream_inner_io_set(Eo *o, Efl_Io_Buffered_Stream_Data *pd, Efl
412} 412}
413 413
414EOLIAN static Efl_Object * 414EOLIAN static Efl_Object *
415_efl_io_buffered_stream_inner_io_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 415_efl_io_buffered_stream_inner_io_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
416{ 416{
417 return pd->inner_io; 417 return pd->inner_io;
418} 418}
@@ -429,7 +429,7 @@ _efl_io_buffered_stream_max_queue_size_input_set(Eo *o EINA_UNUSED, Efl_Io_Buffe
429} 429}
430 430
431EOLIAN static size_t 431EOLIAN static size_t
432_efl_io_buffered_stream_max_queue_size_input_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 432_efl_io_buffered_stream_max_queue_size_input_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
433{ 433{
434 if (!pd->incoming) return 0; 434 if (!pd->incoming) return 0;
435 return efl_io_queue_limit_get(pd->incoming); 435 return efl_io_queue_limit_get(pd->incoming);
@@ -447,7 +447,7 @@ _efl_io_buffered_stream_max_queue_size_output_set(Eo *o EINA_UNUSED, Efl_Io_Buff
447} 447}
448 448
449EOLIAN static size_t 449EOLIAN static size_t
450_efl_io_buffered_stream_max_queue_size_output_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 450_efl_io_buffered_stream_max_queue_size_output_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
451{ 451{
452 if (!pd->outgoing) return 0; 452 if (!pd->outgoing) return 0;
453 return efl_io_queue_limit_get(pd->outgoing); 453 return efl_io_queue_limit_get(pd->outgoing);
@@ -465,7 +465,7 @@ _efl_io_buffered_stream_line_delimiter_set(Eo *o EINA_UNUSED, Efl_Io_Buffered_St
465} 465}
466 466
467EOLIAN static Eina_Slice 467EOLIAN static Eina_Slice
468_efl_io_buffered_stream_line_delimiter_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 468_efl_io_buffered_stream_line_delimiter_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
469{ 469{
470 if (!pd->receiver) return (Eina_Slice){}; 470 if (!pd->receiver) return (Eina_Slice){};
471 return efl_io_copier_line_delimiter_get(pd->receiver); 471 return efl_io_copier_line_delimiter_get(pd->receiver);
@@ -481,7 +481,7 @@ _efl_io_buffered_stream_timeout_inactivity_set(Eo *o EINA_UNUSED, Efl_Io_Buffere
481} 481}
482 482
483EOLIAN static double 483EOLIAN static double
484_efl_io_buffered_stream_timeout_inactivity_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 484_efl_io_buffered_stream_timeout_inactivity_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
485{ 485{
486 if (pd->receiver) 486 if (pd->receiver)
487 return efl_io_copier_timeout_inactivity_get(pd->receiver); 487 return efl_io_copier_timeout_inactivity_get(pd->receiver);
@@ -507,28 +507,28 @@ _efl_io_buffered_stream_read_chunk_size_set(Eo *o EINA_UNUSED, Efl_Io_Buffered_S
507} 507}
508 508
509EOLIAN static size_t 509EOLIAN static size_t
510_efl_io_buffered_stream_read_chunk_size_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 510_efl_io_buffered_stream_read_chunk_size_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
511{ 511{
512 if (!pd->receiver) return 0; 512 if (!pd->receiver) return 0;
513 return efl_io_copier_read_chunk_size_get(pd->receiver); 513 return efl_io_copier_read_chunk_size_get(pd->receiver);
514} 514}
515 515
516EOLIAN static size_t 516EOLIAN static size_t
517_efl_io_buffered_stream_pending_write_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 517_efl_io_buffered_stream_pending_write_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
518{ 518{
519 if (!pd->outgoing) return 0; 519 if (!pd->outgoing) return 0;
520 return efl_io_queue_usage_get(pd->outgoing); 520 return efl_io_queue_usage_get(pd->outgoing);
521} 521}
522 522
523EOLIAN static size_t 523EOLIAN static size_t
524_efl_io_buffered_stream_pending_read_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 524_efl_io_buffered_stream_pending_read_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
525{ 525{
526 if (!pd->incoming) return 0; 526 if (!pd->incoming) return 0;
527 return efl_io_queue_usage_get(pd->incoming); 527 return efl_io_queue_usage_get(pd->incoming);
528} 528}
529 529
530EOLIAN static void 530EOLIAN static void
531_efl_io_buffered_stream_progress_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd, size_t *pr, size_t *pw) 531_efl_io_buffered_stream_progress_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd, size_t *pr, size_t *pw)
532{ 532{
533 uint64_t r = 0, w = 0; 533 uint64_t r = 0, w = 0;
534 534
@@ -540,7 +540,7 @@ _efl_io_buffered_stream_progress_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_D
540} 540}
541 541
542EOLIAN static Eina_Slice 542EOLIAN static Eina_Slice
543_efl_io_buffered_stream_slice_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd) 543_efl_io_buffered_stream_slice_get(const Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd)
544{ 544{
545 Eina_Slice slice = { }; 545 Eina_Slice slice = { };
546 546