eo-files: convert all Eina.Strbuf & Eina.Binbuf
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sun, 19 Apr 2020 13:14:12 +0000 (15:14 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 9 Jun 2020 21:19:10 +0000 (06:19 +0900)
these structs should not be used, but rather the builtin types that
exist for it.

Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D11742

src/lib/ecore/efl_io_copier.eo
src/lib/efl/interfaces/efl_io_buffer.eo
src/lib/eio/efl_io_manager.eo
src/lib/eo/eina_types.eot

index e172a0c41db890dacaebe8fdd07e7a3db9682bbb..291bdbc0ef1c9822ea5fee542941896a4d4f2a7b 100644 (file)
@@ -148,7 +148,7 @@ class @beta Efl.Io.Copier extends Efl.Loop_Consumer implements Efl.Io.Closer {
              destination then the "done" event is emitted.
 
              If the destination is not set (ie: $NULL) then data is kept
-             in a internal @Eina.Binbuf, which can be stolen with
+             in a internal binbuf, which can be stolen with
              @.binbuf_steal once "data" or "line" events are
              emitted. It exists as a useful shortcut to easily drain
              readers and store all data in memory with no need to use an
@@ -313,7 +313,7 @@ class @beta Efl.Io.Copier extends Efl.Loop_Consumer implements Efl.Io.Closer {
              which case you should wait for "done", "data" or "line"
              events and then call it to retrieve and own the data.
            ]]
-           return: ptr(Eina.Binbuf) @move @no_unused; [[Binbuf]]
+           return: binbuf @move @no_unused; [[Binbuf]]
         }
 
         @property pending_size {
index 518a799a3a763c33092f3b74e13019cae2694da3..58e0c7ab22f6286ff041a2c612e34f6e050ed0b1 100644 (file)
@@ -133,7 +133,7 @@ class @beta Efl.Io.Buffer extends Efl.Object
               On failure, for example a read-only backing store was
               adopted with @.adopt_readonly, $NULL is returned.
             ]]
-            return: ptr(Eina.Binbuf) @move @no_unused; [[Binbuf]]
+            return: binbuf @move @no_unused; [[Binbuf]]
         }
     }
 
index be58b047c0d0d8bf6944cc96682ad3fd1d03de4f..6d147d95b444fa0eba5ccdade99b6335263beb1e 100644 (file)
@@ -80,13 +80,13 @@ class @beta Efl.Io.Manager extends Efl.Loop_Consumer
       [[Retrieves or sets information of a given extended attribute.]]
       set {
          values {
-            data: ptr(Eina.Binbuf); [[Data to set as information]]
+            data: binbuf; [[Data to set as information]]
             flags: Eina.Xattr.Flags; [[Extended attributes flags]]
          }
          return: future<uint64> @move; [[Future for asynchronous set operation]]
       }
       get {
-         return: future<Eina.Binbuf> @move; [[Information]]
+         return: future<binbuf> @move; [[Information]]
       }
       keys {
          path: string; [[File path]]
index 000a2567d9030ed609ca24fc22191d257ca888d3..cbb0981dc7f8956f662c603f72a1e26b2fe9f458 100644 (file)
@@ -128,9 +128,6 @@ type @extern Eina.Error: int; [[Eina error type
   @since 1.22
 ]]
 
-struct @extern @beta @free(eina_binbuf_free) Eina.Binbuf; [[Eina binbuf data structure]]
-struct @extern @beta @free(eina_strbuf_free) Eina.Strbuf; [[Eina strbuf data structure]]
-
 struct @extern @beta Eina.Slice {
     [[A linear, read-only, memory segment]]
     len: size; [[Length of the memory segment]]