diff options
author | Murray Cumming <murrayc@murrayc.com> | 2009-02-06 09:56:46 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2009-02-06 09:56:46 +0000 |
commit | 92dbc08019e1644f1235a62f8590114124938105 (patch) | |
tree | 499f9dd52fb7a77dd7a7748bfe392eba693350ab | |
parent | 1326c6dd453a7ea8d882434fc81a10e1306796d8 (diff) | |
download | glibmm-92dbc08019e1644f1235a62f8590114124938105.tar.gz |
Added unix types. Regenerated. Added buffer_size property. Added
2009-02-06 Murray Cumming <murrayc@murrayc.com>
* tools/extra_defs_gen/generate_defs_gio.cc: Added unix types.
* gio/src/gio_signals.defs: Regenerated.
* gio/src/bufferedinputstream.hg: Added buffer_size property.
* gio/src/bufferedoutputstream.hg: Added buffer_size and auto_grow
properties.
* gio/src/datainputstream.hg: Added byte_order and newline_type
properties.
* gio/src/dataoutputstream.hg: Added byte_order property.
* gio/src/filterinputstream.hg: Added close_base_ stream property.
* gio/src/filteroutputstream.hg:
* gio/src/unixinputstream.hg: Added fd and close_fd properties.
* gio/src/unixoutputstream.hg: Added fd and close_fd properties.
svn path=/trunk/; revision=782
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | gio/src/bufferedinputstream.hg | 4 | ||||
-rw-r--r-- | gio/src/bufferedoutputstream.hg | 3 | ||||
-rw-r--r-- | gio/src/datainputstream.hg | 2 | ||||
-rw-r--r-- | gio/src/dataoutputstream.hg | 1 | ||||
-rw-r--r-- | gio/src/filterinputstream.hg | 1 | ||||
-rw-r--r-- | gio/src/filteroutputstream.hg | 1 | ||||
-rw-r--r-- | gio/src/gio_signals.defs | 94 | ||||
-rw-r--r-- | gio/src/unixinputstream.hg | 3 | ||||
-rw-r--r-- | gio/src/unixoutputstream.hg | 3 | ||||
-rw-r--r-- | tools/extra_defs_gen/generate_defs_gio.cc | 5 |
11 files changed, 131 insertions, 1 deletions
@@ -1,3 +1,18 @@ +2009-02-06 Murray Cumming <murrayc@murrayc.com> + + * tools/extra_defs_gen/generate_defs_gio.cc: Added unix types. + * gio/src/gio_signals.defs: Regenerated. + * gio/src/bufferedinputstream.hg: Added buffer_size property. + * gio/src/bufferedoutputstream.hg: Added buffer_size and auto_grow + properties. + * gio/src/datainputstream.hg: Added byte_order and newline_type + properties. + * gio/src/dataoutputstream.hg: Added byte_order property. + * gio/src/filterinputstream.hg: Added close_base_ stream property. + * gio/src/filteroutputstream.hg: + * gio/src/unixinputstream.hg: Added fd and close_fd properties. + * gio/src/unixoutputstream.hg: Added fd and close_fd properties. + 2009-02-05 Theppitak Karoonboonyanan <thep@linux.thai.net> * docs/reference/Doxyfile.in: diff --git a/gio/src/bufferedinputstream.hg b/gio/src/bufferedinputstream.hg index 43b5b1e9..2bd61f17 100644 --- a/gio/src/bufferedinputstream.hg +++ b/gio/src/bufferedinputstream.hg @@ -99,7 +99,7 @@ public: _WRAP_METHOD(int read_byte(const Glib::RefPtr<Cancellable>& cancellable), g_buffered_input_stream_read_byte, errthrow) - /** Non-cancellable version of read_byte. + /** Non-cancellable version of read_byte(). */ #ifdef GLIBMM_EXCEPTIONS_ENABLED int read_byte(); @@ -107,6 +107,8 @@ public: int read_byte(std::auto_ptr<Glib::Error>& error); #endif //GLIBMM_EXCEPTIONS_ENABLED + _WRAP_PROPERTY("buffer-size", guint) + protected: #m4 _CONVERSION(`GCancellable*', `const Glib::RefPtr<Cancellable>&', `Glib::wrap($3, true)') //_WRAP_VFUNC(gssize fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable, GError** error), "fill") diff --git a/gio/src/bufferedoutputstream.hg b/gio/src/bufferedoutputstream.hg index 31d6ec95..b7c2a6fd 100644 --- a/gio/src/bufferedoutputstream.hg +++ b/gio/src/bufferedoutputstream.hg @@ -53,6 +53,9 @@ public: _WRAP_METHOD(void set_auto_grow(bool auto_grow=true), g_buffered_output_stream_set_auto_grow) _WRAP_METHOD(bool get_auto_grow() const, g_buffered_output_stream_get_auto_grow) + + _WRAP_PROPERTY("buffer-size", guint) + _WRAP_PROPERTY("auto-grow", bool) }; } // namespace Gio diff --git a/gio/src/datainputstream.hg b/gio/src/datainputstream.hg index b59a3b82..98fb30d0 100644 --- a/gio/src/datainputstream.hg +++ b/gio/src/datainputstream.hg @@ -154,6 +154,8 @@ public: bool read_until(std::string& data, const std::string& stop_chars, std::auto_ptr<Glib::Error>& error); #endif //GLIBMM_EXCEPTIONS_ENABLED + _WRAP_PROPERTY("byte-order", DataStreamByteOrder) + _WRAP_PROPERTY("newline-type", DataStreamNewlineType) }; } // namespace Gio diff --git a/gio/src/dataoutputstream.hg b/gio/src/dataoutputstream.hg index c94fbc9a..4bdabe1a 100644 --- a/gio/src/dataoutputstream.hg +++ b/gio/src/dataoutputstream.hg @@ -124,6 +124,7 @@ public: bool put_string(std::string str, std::auto_ptr<Glib::Error>& error); #endif //GLIBMM_EXCEPTIONS_ENABLED + _WRAP_PROPERTY("byte-order", DataStreamByteOrder) }; } // namespace Gio diff --git a/gio/src/filterinputstream.hg b/gio/src/filterinputstream.hg index f1e45a06..93df2c53 100644 --- a/gio/src/filterinputstream.hg +++ b/gio/src/filterinputstream.hg @@ -47,6 +47,7 @@ public: refreturn, constversion) _WRAP_PROPERTY("base-stream", Glib::RefPtr<InputStream>) + _WRAP_PROPERTY("close-base-stream", bool) }; } // namespace Gio diff --git a/gio/src/filteroutputstream.hg b/gio/src/filteroutputstream.hg index e40dce00..02c79524 100644 --- a/gio/src/filteroutputstream.hg +++ b/gio/src/filteroutputstream.hg @@ -47,6 +47,7 @@ public: refreturn, constversion) _WRAP_PROPERTY("base-stream", Glib::RefPtr<InputStream>) + _WRAP_PROPERTY("close-base-stream", bool) }; } // namespace Gio diff --git a/gio/src/gio_signals.defs b/gio/src/gio_signals.defs index 4eae72ef..11c5e17b 100644 --- a/gio/src/gio_signals.defs +++ b/gio/src/gio_signals.defs @@ -19,6 +19,15 @@ (construct-only #t) ) +(define-property close-base-stream + (of-object "GBufferedInputStream") + (prop-type "GParamBoolean") + (docs "If the base stream be closed when the filter stream is") + (readable #t) + (writable #t) + (construct-only #t) +) + (define-property buffer-size (of-object "GBufferedInputStream") (prop-type "GParamUInt") @@ -39,6 +48,15 @@ (construct-only #t) ) +(define-property close-base-stream + (of-object "GBufferedOutputStream") + (prop-type "GParamBoolean") + (docs "If the base stream be closed when the filter stream is") + (readable #t) + (writable #t) + (construct-only #t) +) + (define-property buffer-size (of-object "GBufferedOutputStream") (prop-type "GParamUInt") @@ -68,6 +86,15 @@ (construct-only #t) ) +(define-property close-base-stream + (of-object "GDataInputStream") + (prop-type "GParamBoolean") + (docs "If the base stream be closed when the filter stream is") + (readable #t) + (writable #t) + (construct-only #t) +) + (define-property buffer-size (of-object "GDataInputStream") (prop-type "GParamUInt") @@ -106,6 +133,15 @@ (construct-only #t) ) +(define-property close-base-stream + (of-object "GDataOutputStream") + (prop-type "GParamBoolean") + (docs "If the base stream be closed when the filter stream is") + (readable #t) + (writable #t) + (construct-only #t) +) + (define-property byte-order (of-object "GDataOutputStream") (prop-type "GParamEnum") @@ -215,6 +251,15 @@ (construct-only #t) ) +(define-property close-base-stream + (of-object "GFilterInputStream") + (prop-type "GParamBoolean") + (docs "If the base stream be closed when the filter stream is") + (readable #t) + (writable #t) + (construct-only #t) +) + ;; From GFilterOutputStream (define-property base-stream @@ -226,6 +271,55 @@ (construct-only #t) ) +(define-property close-base-stream + (of-object "GFilterOutputStream") + (prop-type "GParamBoolean") + (docs "If the base stream be closed when the filter stream is") + (readable #t) + (writable #t) + (construct-only #t) +) + +;; From GUnixInputStream + +(define-property fd + (of-object "GUnixInputStream") + (prop-type "GParamInt") + (docs "The file descriptor to read from") + (readable #t) + (writable #t) + (construct-only #t) +) + +(define-property close-fd + (of-object "GUnixInputStream") + (prop-type "GParamBoolean") + (docs "Whether to close the file descriptor when the stream is closed") + (readable #t) + (writable #t) + (construct-only #f) +) + +;; From GUnixOutputStream + +(define-property fd + (of-object "GUnixOutputStream") + (prop-type "GParamInt") + (docs "The file descriptor to write to") + (readable #t) + (writable #t) + (construct-only #t) +) + +(define-property close-fd + (of-object "GUnixOutputStream") + (prop-type "GParamBoolean") + (docs "Whether to close the file descriptor when the stream is closed") + (readable #t) + (writable #t) + (construct-only #f) +) + ;; From GInputStream ;; From GLoadableIcon diff --git a/gio/src/unixinputstream.hg b/gio/src/unixinputstream.hg index 72286428..05a1556f 100644 --- a/gio/src/unixinputstream.hg +++ b/gio/src/unixinputstream.hg @@ -44,6 +44,9 @@ protected: public: _WRAP_CREATE(int fd, bool close_fd_at_close) + + _WRAP_PROPERTY("fd", int) + _WRAP_PROPERTY("close-fd", bool) }; } // namespace Gio diff --git a/gio/src/unixoutputstream.hg b/gio/src/unixoutputstream.hg index 400d284c..4dd526f0 100644 --- a/gio/src/unixoutputstream.hg +++ b/gio/src/unixoutputstream.hg @@ -43,6 +43,9 @@ protected: public: _WRAP_CREATE(int fd, bool close_fd_at_close) + + _WRAP_PROPERTY("fd", int) + _WRAP_PROPERTY("close-fd", bool) }; } // namespace Gio diff --git a/tools/extra_defs_gen/generate_defs_gio.cc b/tools/extra_defs_gen/generate_defs_gio.cc index c4dd9578..6874a10f 100644 --- a/tools/extra_defs_gen/generate_defs_gio.cc +++ b/tools/extra_defs_gen/generate_defs_gio.cc @@ -20,6 +20,8 @@ #include "generate_extra_defs.h" #include <iostream> #include <gio/gio.h> +#include <gio/gunixinputstream.h> +#include <gio/gunixoutputstream.h> int main (int argc, char** argv) { @@ -45,6 +47,9 @@ int main (int argc, char** argv) << get_defs(G_TYPE_FILTER_INPUT_STREAM) << get_defs(G_TYPE_FILTER_OUTPUT_STREAM) + << get_defs(G_TYPE_UNIX_INPUT_STREAM) + << get_defs(G_TYPE_UNIX_OUTPUT_STREAM) + << get_defs(G_TYPE_INPUT_STREAM) << get_defs(G_TYPE_LOADABLE_ICON) << get_defs(G_TYPE_MEMORY_INPUT_STREAM) |