switch glibmm/giomm to 2.18

git-svn-id: svn://localhost/ardour2/branches/3.0@5306 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-07-02 16:00:45 +00:00
parent e6c240a691
commit a73d15e989
423 changed files with 142369 additions and 23979 deletions

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
;; From /opt/gnome2/include/glib-2.0/glib/gbookmarkfile.h
;; From /opt/gnome218/include/glib-2.0/glib/gbookmarkfile.h
(define-enum-extended BookmarkFileError
(in-module "G")
@ -15,7 +15,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gchecksum.h
;; From ../glibc/trunk/glib/gchecksum.h
(define-enum-extended ChecksumType
(in-module "G")
@ -27,7 +27,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gconvert.h
;; From /opt/gnome218/include/glib-2.0/glib/gconvert.h
(define-enum-extended ConvertError
(in-module "G")
@ -42,7 +42,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gdate.h
;; From /opt/gnome218/include/glib-2.0/glib/gdate.h
(define-enum-extended DateDMY
(in-module "G")
@ -89,7 +89,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gfileutils.h
;; From /opt/gnome218/include/glib-2.0/glib/gfileutils.h
(define-enum-extended FileError
(in-module "G")
@ -135,7 +135,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/ghook.h
;; From /opt/gnome218/include/glib-2.0/glib/ghook.h
(define-flags-extended HookFlagMask
(in-module "G")
@ -147,7 +147,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/giochannel.h
;; From /opt/gnome218/include/glib-2.0/glib/giochannel.h
(define-enum-extended IOError
(in-module "G")
@ -218,7 +218,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gkeyfile.h
;; From /opt/gnome218/include/glib-2.0/glib/gkeyfile.h
(define-enum-extended KeyFileError
(in-module "G")
@ -243,7 +243,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gmarkup.h
;; From /opt/gnome218/include/glib-2.0/glib/gmarkup.h
(define-enum-extended MarkupError
(in-module "G")
@ -255,7 +255,6 @@
'("unknown-element" "G_MARKUP_ERROR_UNKNOWN_ELEMENT" "3")
'("unknown-attribute" "G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE" "4")
'("invalid-content" "G_MARKUP_ERROR_INVALID_CONTENT" "5")
'("missing-attribute" "G_MARKUP_ERROR_MISSING_ATTRIBUTE" "6")
)
)
@ -265,24 +264,10 @@
(values
'("do-not-use-this-unsupported-flag" "G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG" "1 << 0")
'("treat-cdata-as-text" "G_MARKUP_TREAT_CDATA_AS_TEXT" "1 << 1")
'("prefix-error-position" "G_MARKUP_PREFIX_ERROR_POSITION" "1 << 2")
)
)
(define-flags-extended MarkupCollectType
(in-module "G")
(c-name "GMarkupCollectType")
(values
'("invalid" "G_MARKUP_COLLECT_INVALID" "0")
'("string" "G_MARKUP_COLLECT_STRING" "1")
'("strdup" "G_MARKUP_COLLECT_STRDUP" "2")
'("boolean" "G_MARKUP_COLLECT_BOOLEAN" "3")
'("tristate" "G_MARKUP_COLLECT_TRISTATE" "4")
'("optional" "G_MARKUP_COLLECT_OPTIONAL" "1 << 16")
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gmessages.h
;; From /opt/gnome218/include/glib-2.0/glib/gmessages.h
(define-flags-extended LogLevelFlags
(in-module "G")
@ -300,7 +285,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gnode.h
;; From /opt/gnome218/include/glib-2.0/glib/gnode.h
(define-flags-extended TraverseFlags
(in-module "G")
@ -326,7 +311,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/goption.h
;; From /opt/gnome218/include/glib-2.0/glib/goption.h
(define-flags-extended OptionFlags
(in-module "G")
@ -368,7 +353,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gregex.h
;; From /opt/gnome218/include/glib-2.0/glib/gregex.h
(define-enum-extended RegexError
(in-module "G")
@ -378,44 +363,6 @@
'("optimize" "G_REGEX_ERROR_OPTIMIZE" "1")
'("replace" "G_REGEX_ERROR_REPLACE" "2")
'("match" "G_REGEX_ERROR_MATCH" "3")
'("internal" "G_REGEX_ERROR_INTERNAL" "4")
'("stray-backslash" "G_REGEX_ERROR_STRAY_BACKSLASH" "101")
'("missing-control-char" "G_REGEX_ERROR_MISSING_CONTROL_CHAR" "102")
'("unrecognized-escape" "G_REGEX_ERROR_UNRECOGNIZED_ESCAPE" "103")
'("quantifiers-out-of-order" "G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER" "104")
'("quantifier-too-big" "G_REGEX_ERROR_QUANTIFIER_TOO_BIG" "105")
'("unterminated-character-class" "G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS" "106")
'("invalid-escape-in-character-class" "G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS" "107")
'("range-out-of-order" "G_REGEX_ERROR_RANGE_OUT_OF_ORDER" "108")
'("nothing-to-repeat" "G_REGEX_ERROR_NOTHING_TO_REPEAT" "109")
'("unrecognized-character" "G_REGEX_ERROR_UNRECOGNIZED_CHARACTER" "112")
'("posix-named-class-outside-class" "G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS" "113")
'("unmatched-parenthesis" "G_REGEX_ERROR_UNMATCHED_PARENTHESIS" "114")
'("inexistent-subpattern-reference" "G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE" "115")
'("unterminated-comment" "G_REGEX_ERROR_UNTERMINATED_COMMENT" "118")
'("expression-too-large" "G_REGEX_ERROR_EXPRESSION_TOO_LARGE" "120")
'("memory-error" "G_REGEX_ERROR_MEMORY_ERROR" "121")
'("variable-length-lookbehind" "G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND" "125")
'("malformed-condition" "G_REGEX_ERROR_MALFORMED_CONDITION" "126")
'("too-many-conditional-branches" "G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES" "127")
'("assertion-expected" "G_REGEX_ERROR_ASSERTION_EXPECTED" "128")
'("unknown-posix-class-name" "G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME" "130")
'("posix-collating-elements-not-supported" "G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED" "131")
'("hex-code-too-large" "G_REGEX_ERROR_HEX_CODE_TOO_LARGE" "134")
'("invalid-condition" "G_REGEX_ERROR_INVALID_CONDITION" "135")
'("single-byte-match-in-lookbehind" "G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND" "136")
'("infinite-loop" "G_REGEX_ERROR_INFINITE_LOOP" "140")
'("missing-subpattern-name-terminator" "G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR" "142")
'("duplicate-subpattern-name" "G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME" "143")
'("malformed-property" "G_REGEX_ERROR_MALFORMED_PROPERTY" "146")
'("unknown-property" "G_REGEX_ERROR_UNKNOWN_PROPERTY" "147")
'("subpattern-name-too-long" "G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG" "148")
'("too-many-subpatterns" "G_REGEX_ERROR_TOO_MANY_SUBPATTERNS" "149")
'("invalid-octal-value" "G_REGEX_ERROR_INVALID_OCTAL_VALUE" "151")
'("too-many-branches-in-define" "G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE" "154")
'("define-repetion" "G_REGEX_ERROR_DEFINE_REPETION" "155")
'("inconsistent-newline-options" "G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS" "156")
'("missing-back-reference" "G_REGEX_ERROR_MISSING_BACK_REFERENCE" "157")
)
)
@ -456,7 +403,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gscanner.h
;; From /opt/gnome218/include/glib-2.0/glib/gscanner.h
(define-enum-extended ErrorType
(in-module "G")
@ -473,38 +420,7 @@
)
)
(define-enum-extended TokenType
(in-module "G")
(c-name "GTokenType")
(values
'("eof" "G_TOKEN_EOF" "0")
'("left-paren" "G_TOKEN_LEFT_PAREN" "'('")
'("right-paren" "G_TOKEN_RIGHT_PAREN" "')'")
'("left-curly" "G_TOKEN_LEFT_CURLY" "'{'")
'("right-curly" "G_TOKEN_RIGHT_CURLY" "']'")
'("left-brace" "G_TOKEN_LEFT_BRACE" "'['")
'("right-brace" "G_TOKEN_RIGHT_BRACE" "']'")
'("equal-sign" "G_TOKEN_EQUAL_SIGN" "'='")
'("comma" "G_TOKEN_COMMA" "','")
'("none" "G_TOKEN_NONE" "256")
'("error" "G_TOKEN_ERROR" "257")
'("char" "G_TOKEN_CHAR" "258")
'("binary" "G_TOKEN_BINARY" "259")
'("octal" "G_TOKEN_OCTAL" "260")
'("int" "G_TOKEN_INT" "261")
'("hex" "G_TOKEN_HEX" "262")
'("float" "G_TOKEN_FLOAT" "263")
'("string" "G_TOKEN_STRING" "264")
'("symbol" "G_TOKEN_SYMBOL" "265")
'("identifier" "G_TOKEN_IDENTIFIER" "266")
'("identifier-null" "G_TOKEN_IDENTIFIER_NULL" "267")
'("comment-single" "G_TOKEN_COMMENT_SINGLE" "268")
'("comment-multi" "G_TOKEN_COMMENT_MULTI" "269")
'("last" "G_TOKEN_LAST" "270")
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gshell.h
;; From /opt/gnome218/include/glib-2.0/glib/gshell.h
(define-enum-extended ShellError
(in-module "G")
@ -516,7 +432,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gslice.h
;; From /opt/gnome218/include/glib-2.0/glib/gslice.h
(define-enum-extended SliceConfig
(in-module "G")
@ -531,7 +447,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gspawn.h
;; From /opt/gnome218/include/glib-2.0/glib/gspawn.h
(define-enum-extended SpawnError
(in-module "G")
@ -573,7 +489,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gstrfuncs.h
;; From /opt/gnome218/include/glib-2.0/glib/gstrfuncs.h
(define-flags-extended AsciiType
(in-module "G")
@ -593,36 +509,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gtestutils.h
(define-flags-extended TestTrapFlags
(in-module "G")
(c-name "GTestTrapFlags")
(values
'("silence-stdout" "G_TEST_TRAP_SILENCE_STDOUT" "1 << 7")
'("silence-stderr" "G_TEST_TRAP_SILENCE_STDERR" "1 << 8")
'("inherit-stdin" "G_TEST_TRAP_INHERIT_STDIN" "1 << 9")
)
)
(define-enum-extended TestLogType
(in-module "G")
(c-name "GTestLogType")
(values
'("none" "G_TEST_LOG_NONE" "0")
'("error" "G_TEST_LOG_ERROR" "1")
'("start-binary" "G_TEST_LOG_START_BINARY" "2")
'("list-case" "G_TEST_LOG_LIST_CASE" "3")
'("skip-case" "G_TEST_LOG_SKIP_CASE" "4")
'("start-case" "G_TEST_LOG_START_CASE" "5")
'("stop-case" "G_TEST_LOG_STOP_CASE" "6")
'("min-result" "G_TEST_LOG_MIN_RESULT" "7")
'("max-result" "G_TEST_LOG_MAX_RESULT" "8")
'("message" "G_TEST_LOG_MESSAGE" "9")
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gthread.h
;; From /opt/gnome218/include/glib-2.0/glib/gthread.h
(define-enum-extended ThreadError
(in-module "G")
@ -653,7 +540,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gunicode.h
;; From /opt/gnome218/include/glib-2.0/glib/gunicode.h
(define-enum-extended UnicodeType
(in-module "G")
@ -807,17 +694,6 @@
'("phoenician" "G_UNICODE_SCRIPT_PHOENICIAN" "64")
'("phags-pa" "G_UNICODE_SCRIPT_PHAGS_PA" "65")
'("nko" "G_UNICODE_SCRIPT_NKO" "66")
'("kayah-li" "G_UNICODE_SCRIPT_KAYAH_LI" "67")
'("lepcha" "G_UNICODE_SCRIPT_LEPCHA" "68")
'("rejang" "G_UNICODE_SCRIPT_REJANG" "69")
'("sundanese" "G_UNICODE_SCRIPT_SUNDANESE" "70")
'("saurashtra" "G_UNICODE_SCRIPT_SAURASHTRA" "71")
'("cham" "G_UNICODE_SCRIPT_CHAM" "72")
'("ol-chiki" "G_UNICODE_SCRIPT_OL_CHIKI" "73")
'("vai" "G_UNICODE_SCRIPT_VAI" "74")
'("carian" "G_UNICODE_SCRIPT_CARIAN" "75")
'("lycian" "G_UNICODE_SCRIPT_LYCIAN" "76")
'("lydian" "G_UNICODE_SCRIPT_LYDIAN" "77")
)
)
@ -836,7 +712,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/glib/gutils.h
;; From /opt/gnome218/include/glib-2.0/glib/gutils.h
(define-enum-extended UserDirectory
(in-module "G")

View file

@ -18,6 +18,16 @@
)
)
(define-flags ArrayFlags
(in-module "GBSearch")
(c-name "GBSearchArrayFlags")
(gtype-id "G_TYPE_B_SEARCH_ARRAY_FLAGS")
(values
'("lign-power2" "G_BSEARCH_ARRAY_ALIGN_POWER2")
'("uto-shrink" "G_BSEARCH_ARRAY_AUTO_SHRINK")
)
)
(define-enum Type
(in-module "GChecksum")
(c-name "GChecksumType")
@ -91,6 +101,16 @@
)
)
(define-flags Flag
(in-module "GDebug")
(c-name "GDebugFlag")
(gtype-id "G_TYPE_DEBUG_FLAG")
(values
'("warnings" "G_DEBUG_FATAL_WARNINGS")
'("criticals" "G_DEBUG_FATAL_CRITICALS")
)
)
(define-enum Error
(in-module "GFile")
(c-name "GFileError")
@ -607,7 +627,7 @@
(c-name "GThreadError")
(gtype-id "G_TYPE_THREAD_ERROR")
(values
'("again" "G_THREAD_ERROR_AGAIN")
'("n" "G_THREAD_ERROR_AGAIN")
)
)
@ -837,6 +857,10 @@
)
;; From galias.h
;; From galloca.h
(define-function alloca
@ -1917,6 +1941,26 @@
;; From gbsearcharray.h
(define-function if
(c-name "if")
(return-type "else")
(parameters
'("cmp-<" "0")
)
)
(define-function MIN
(c-name "MIN")
(return-type "return")
(parameters
'("barray->n_nodes-+" "1")
)
)
;; From gcache.h
(define-function g_cache_new
@ -2149,19 +2193,7 @@
'("const-gchar*" "to_codeset")
'("const-gchar*" "from_codeset")
)
)
(define-method
(of-object "GIConv")
(c-name "g_iconv")
(return-type "gsize")
(parameters
'("gchar**" "inbuf")
'("gsize*" "inbytes_left")
'("gchar**" "outbuf")
'("gsize*" "outbytes_left")
)
)
)
(define-method close
(of-object "GIConv")
@ -2445,6 +2477,10 @@
;; From gdatasetprivate.h
;; From gdate.h
(define-function g_date_new
@ -2837,6 +2873,10 @@
;; From gdebug.h
;; From gdir.h
(define-function g_dir_open
@ -3019,7 +3059,7 @@
(parameters
'("const-gchar*" "filename")
'("const-gchar*" "contents")
'("gssize" "length")
'("gsize" "length")
'("GError**" "error")
)
)
@ -3952,14 +3992,6 @@
)
)
(define-function g_io_channel_win32_new_messages
(c-name "g_io_channel_win32_new_messages")
(return-type "GIOChannel*")
(parameters
'("gsize" "hwnd")
)
)
(define-function g_io_channel_win32_new_messages
(c-name "g_io_channel_win32_new_messages")
(return-type "GIOChannel*")
@ -4437,6 +4469,26 @@
;; From glib.h
;; From glibintl.h
(define-function glib_gettext
(c-name "glib_gettext")
(return-type "const-gchar*")
(parameters
'("const-gchar*" "str")
)
)
;; From glib-object.h
;; From glist.h
(define-function g_list_alloc
@ -5351,12 +5403,6 @@
)
)
(define-method get_user_data
(of-object "GMarkupParseContext")
(c-name "g_markup_parse_context_get_user_data")
(return-type "gpointer")
)
(define-function g_markup_escape_text
(c-name "g_markup_escape_text")
(return-type "gchar*")
@ -5714,6 +5760,10 @@
;; From gmirroringtable.h
;; From gnode.h
(define-function g_node_new
@ -6228,20 +6278,6 @@
;; From gpoll.h
(define-function g_poll
(c-name "g_poll")
(return-type "gint")
(parameters
'("GPollFD*" "fds")
'("guint" "nfds")
'("gint" "timeout")
)
)
;; From gprimes.h
(define-function g_spaced_primes_closest
@ -6326,6 +6362,10 @@
;; From gprintfint.h
;; From gqsort.h
(define-function g_qsort_with_data
@ -7433,6 +7473,10 @@
;; From gscripttable.h
;; From gsequence.h
(define-function g_sequence_new
@ -8833,16 +8877,6 @@
)
)
(define-function g_dpgettext2
(c-name "g_dpgettext2")
(return-type "const-gchar*")
(parameters
'("const-gchar*" "domain")
'("const-gchar*" "context")
'("const-gchar*" "msgid")
)
)
;; From gstring.h
@ -9228,24 +9262,6 @@
(return-type "int")
)
(define-function g_test_add_func
(c-name "g_test_add_func")
(return-type "none")
(parameters
'("const-char*" "testpath")
'("void-(*" "test_func")
)
)
(define-function g_test_add_data_func
(c-name "g_test_add_data_func")
(return-type "none")
(parameters
'("const-char*" "testpath")
'("gconstpointer" "test_data")
'("void-(*" "test_func")
)
)
(define-function g_test_message
(c-name "g_test_message")
@ -9351,17 +9367,6 @@
)
)
(define-function g_test_create_case
(c-name "g_test_create_case")
(return-type "GTestCase*")
(parameters
'("const-char*" "test_name")
'("gsize" "data_size")
'("gconstpointer" "test_data")
'("void-(*" "data_setup")
)
)
(define-function g_test_create_suite
(c-name "g_test_create_suite")
(return-type "GTestSuite*")
@ -9469,32 +9474,6 @@
)
)
(define-function g_assertion_message_error
(c-name "g_assertion_message_error")
(return-type "none")
(parameters
'("const-char*" "domain")
'("const-char*" "file")
'("int" "line")
'("const-char*" "func")
'("const-char*" "expr")
'("GError*" "error")
'("GQuark" "error_domain")
'("int" "error_code")
)
)
(define-function g_test_add_vtable
(c-name "g_test_add_vtable")
(return-type "none")
(parameters
'("const-char*" "testpath")
'("gsize" "data_size")
'("gconstpointer" "test_data")
'("void-(*" "data_setup")
)
)
(define-method name
(of-object "GTestLogType")
(c-name "g_test_log_type_name")
@ -9895,6 +9874,15 @@
;; From gthreadprivate.h
(define-function g_thread_init_glib
(c-name "g_thread_init_glib")
(return-type "none")
)
;; From gtimer.h
(define-function g_timer_new
@ -10120,6 +10108,14 @@
;; From gunibreak.h
;; From gunichartables.h
;; From gunicode.h
(define-function g_get_charset
@ -10595,6 +10591,18 @@
;; From gunicodeprivate.h
;; From gunicomp.h
;; From gunidecomp.h
;; From gurifuncs.h
(define-function g_uri_unescape_string
@ -10704,24 +10712,6 @@
(return-type "const-gchar*")
)
(define-function g_get_system_data_dirs
(c-name "g_get_system_data_dirs")
(return-type "const-gchar**")
)
(define-function g_win32_get_system_data_dirs_for_module
(c-name "g_win32_get_system_data_dirs_for_module")
(return-type "const-gchar**")
(parameters
'("gconstpointer" "address")
)
)
(define-function g_get_language_names
(c-name "g_get_language_names")
(return-type "const-gchar**")
)
(define-function g_get_user_special_dir
(c-name "g_get_user_special_dir")
(return-type "const-gchar*")
@ -10854,14 +10844,6 @@
)
)
(define-function atexit
(c-name "atexit")
(return-type "int")
(parameters
'("void" "(*")
)
)
(define-function g_find_program_in_path
(c-name "g_find_program_in_path")
(return-type "gchar*")

View file

@ -1,4 +1,4 @@
;; From /opt/gnome2/include/glib-2.0/gmodule.h
;; From /home/murrayc/cvs/gnome212/glib/gmodule/gmodule.h
(define-flags-extended ModuleFlags
(in-module "G")

View file

@ -14,7 +14,11 @@
)
;; From gmodule.h
;; From /home/murrayc/cvs/gnome212/glib/gmodule/gmoduleconf.h
;; From /home/murrayc/cvs/gnome212/glib/gmodule/gmodule.h
(define-function g_module_supported
(c-name "g_module_supported")

View file

@ -1,4 +1,4 @@
;; From /opt/gnome2/include/glib-2.0/gobject/gparam.h
;; From gobject/gparam.h
(define-flags-extended ParamFlags
(in-module "G")
@ -9,12 +9,11 @@
'("construct" "G_PARAM_CONSTRUCT" "1 << 2")
'("construct-only" "G_PARAM_CONSTRUCT_ONLY" "1 << 3")
'("lax-validation" "G_PARAM_LAX_VALIDATION" "1 << 4")
'("static-name" "G_PARAM_STATIC_NAME" "1 << 5")
'("static-blurb" "G_PARAM_STATIC_BLURB" "1 << 7")
'("private" "G_PARAM_PRIVATE" "1 << 5")
)
)
;; From /opt/gnome2/include/glib-2.0/gobject/gsignal.h
;; From gobject/gsignal.h
(define-flags-extended SignalFlags
(in-module "G")
@ -52,7 +51,7 @@
)
)
;; From /opt/gnome2/include/glib-2.0/gobject/gtype.h
;; From gobject/gtype.h
(define-flags-extended TypeDebugFlags
(in-module "G")
@ -65,23 +64,17 @@
)
)
(define-flags-extended TypeFundamentalFlags
(define-enum-extended TypeFundamentalFlags
(in-module "G")
(c-name "GTypeFundamentalFlags")
(values
'("classed" "G_TYPE_FLAG_CLASSED" "1 << 0")
'("instantiatable" "G_TYPE_FLAG_INSTANTIATABLE" "1 << 1")
'("derivable" "G_TYPE_FLAG_DERIVABLE" "1 << 2")
'("deep-derivable" "G_TYPE_FLAG_DEEP_DERIVABLE" "1 << 3")
)
)
(define-flags-extended TypeFlags
(define-enum-extended TypeFlags
(in-module "G")
(c-name "GTypeFlags")
(values
'("abstract" "G_TYPE_FLAG_ABSTRACT" "1 << 4")
'("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT" "1 << 5")
)
)

View file

@ -1,22 +1,16 @@
;; -*- scheme -*-
; object definitions ...
(define-object Module
(in-module "GType")
(define-object TypeModule
(in-module "G")
(parent "GObject")
(c-name "GTypeModule")
(gtype-id "G_TYPE_TYPE_MODULE")
)
(define-object Plugin
(in-module "GType")
(c-name "GTypePlugin")
(gtype-id "G_TYPE_TYPE_PLUGIN")
)
;; Enumerations and flags ...
(define-flags Flags
(in-module "GParam")
(define-flags ParamFlags
(in-module "G")
(c-name "GParamFlags")
(gtype-id "G_TYPE_PARAM_FLAGS")
(values
@ -25,15 +19,12 @@
'("construct" "G_PARAM_CONSTRUCT")
'("construct-only" "G_PARAM_CONSTRUCT_ONLY")
'("lax-validation" "G_PARAM_LAX_VALIDATION")
'("static-name" "G_PARAM_STATIC_NAME")
'("private" "G_PARAM_PRIVATE")
'("static-nick" "G_PARAM_STATIC_NICK")
'("static-blurb" "G_PARAM_STATIC_BLURB")
)
)
(define-flags Flags
(in-module "GSignal")
(define-flags SignalFlags
(in-module "G")
(c-name "GSignalFlags")
(gtype-id "G_TYPE_SIGNAL_FLAGS")
(values
@ -47,8 +38,8 @@
)
)
(define-flags Flags
(in-module "GConnect")
(define-flags ConnectFlags
(in-module "G")
(c-name "GConnectFlags")
(gtype-id "G_TYPE_CONNECT_FLAGS")
(values
@ -57,8 +48,8 @@
)
)
(define-flags MatchType
(in-module "GSignal")
(define-flags SignalMatchType
(in-module "G")
(c-name "GSignalMatchType")
(gtype-id "G_TYPE_SIGNAL_MATCH_TYPE")
(values
@ -71,8 +62,8 @@
)
)
(define-flags DebugFlags
(in-module "GType")
(define-flags TypeDebugFlags
(in-module "G")
(c-name "GTypeDebugFlags")
(gtype-id "G_TYPE_TYPE_DEBUG_FLAGS")
(values
@ -83,8 +74,8 @@
)
)
(define-flags FundamentalFlags
(in-module "GType")
(define-flags TypeFundamentalFlags
(in-module "G")
(c-name "GTypeFundamentalFlags")
(gtype-id "G_TYPE_TYPE_FUNDAMENTAL_FLAGS")
(values
@ -95,8 +86,8 @@
)
)
(define-flags Flags
(in-module "GType")
(define-flags TypeFlags
(in-module "G")
(c-name "GTypeFlags")
(gtype-id "G_TYPE_TYPE_FLAGS")
(values
@ -106,16 +97,7 @@
)
;; From gboxed.h
(define-function g_boxed_copy
(c-name "g_boxed_copy")
(return-type "gpointer")
(parameters
'("GType" "boxed_type")
'("gconstpointer" "src_boxed")
)
)
;; From gobject/gboxed.h
(define-function g_boxed_free
(c-name "g_boxed_free")
@ -166,15 +148,6 @@
)
)
(define-method take_boxed
(of-object "GValue")
(c-name "g_value_take_boxed")
(return-type "none")
(parameters
'("gconstpointer" "v_boxed")
)
)
(define-method set_boxed_take_ownership
(of-object "GValue")
(c-name "g_value_set_boxed_take_ownership")
@ -199,38 +172,17 @@
(return-type "GType")
)
(define-function g_date_get_type
(c-name "g_date_get_type")
(return-type "GType")
)
(define-function g_strv_get_type
(c-name "g_strv_get_type")
(return-type "GType")
)
(define-function g_gstring_get_type
(c-name "g_gstring_get_type")
(return-type "GType")
)
(define-function g_hash_table_get_type
(c-name "g_hash_table_get_type")
(return-type "GType")
)
(define-function g_regex_get_type
(c-name "g_regex_get_type")
(return-type "GType")
)
;; From gclosure.h
;; From gobject/gclosure.h
(define-function g_cclosure_new
(c-name "g_cclosure_new")
(is-constructor-of "GCclosure")
(return-type "GClosure*")
(parameters
'("GCallback" "callback_func")
@ -251,7 +203,6 @@
(define-function g_signal_type_cclosure_new
(c-name "g_signal_type_cclosure_new")
(is-constructor-of "GSignalTypeCclosure")
(return-type "GClosure*")
(parameters
'("GType" "itype")
@ -377,7 +328,7 @@
;; From genums.h
;; From gobject/genums.h
(define-function g_enum_get_value
(c-name "g_enum_get_value")
@ -503,16 +454,11 @@
;; From gmarshal.h
;; From gobject/gmarshal.h
;; From gobject.h
(define-function g_initially_unowned_get_type
(c-name "g_initially_unowned_get_type")
(return-type "GType")
)
;; From gobject/gobject.h
(define-method install_property
(of-object "GObjectClass")
@ -533,57 +479,6 @@
)
)
(define-method list_properties
(of-object "GObjectClass")
(c-name "g_object_class_list_properties")
(return-type "GParamSpec**")
(parameters
'("guint*" "n_properties")
)
)
(define-method override_property
(of-object "GObjectClass")
(c-name "g_object_class_override_property")
(return-type "none")
(parameters
'("guint" "property_id")
'("const-gchar*" "name")
)
)
(define-function g_object_interface_install_property
(c-name "g_object_interface_install_property")
(return-type "none")
(parameters
'("gpointer" "g_iface")
'("GParamSpec*" "pspec")
)
)
(define-function g_object_interface_find_property
(c-name "g_object_interface_find_property")
(return-type "GParamSpec*")
(parameters
'("gpointer" "g_iface")
'("const-gchar*" "property_name")
)
)
(define-function g_object_interface_list_properties
(c-name "g_object_interface_list_properties")
(return-type "GParamSpec**")
(parameters
'("gpointer" "g_iface")
'("guint*" "n_properties_p")
)
)
(define-function g_object_get_type
(c-name "g_object_get_type")
(return-type "GType")
)
(define-function g_object_new
(c-name "g_object_new")
(return-type "gpointer")
@ -715,22 +610,6 @@
(return-type "none")
)
(define-function g_object_is_floating
(c-name "g_object_is_floating")
(return-type "gboolean")
(parameters
'("gpointer" "object")
)
)
(define-function g_object_ref_sink
(c-name "g_object_ref_sink")
(return-type "gpointer")
(parameters
'("gpointer" "object")
)
)
(define-function g_object_ref
(c-name "g_object_ref")
(return-type "gpointer")
@ -785,26 +664,6 @@
)
)
(define-method add_toggle_ref
(of-object "GObject")
(c-name "g_object_add_toggle_ref")
(return-type "none")
(parameters
'("GToggleNotify" "notify")
'("gpointer" "data")
)
)
(define-method remove_toggle_ref
(of-object "GObject")
(c-name "g_object_remove_toggle_ref")
(return-type "none")
(parameters
'("GToggleNotify" "notify")
'("gpointer" "data")
)
)
(define-method get_qdata
(of-object "GObject")
(c-name "g_object_get_qdata")
@ -937,7 +796,7 @@
(define-method dup_object
(of-object "GValue")
(c-name "g_value_dup_object")
(return-type "gpointer")
(return-type "GObject*")
)
(define-function g_signal_connect_object
@ -952,27 +811,12 @@
)
)
(define-method force_floating
(of-object "GObject")
(c-name "g_object_force_floating")
(return-type "none")
)
(define-method run_dispose
(of-object "GObject")
(c-name "g_object_run_dispose")
(return-type "none")
)
(define-method take_object
(of-object "GValue")
(c-name "g_value_take_object")
(return-type "none")
(parameters
'("gpointer" "v_object")
)
)
(define-method set_object_take_ownership
(of-object "GValue")
(c-name "g_value_set_object_take_ownership")
@ -982,18 +826,9 @@
)
)
(define-function g_object_compat_control
(c-name "g_object_compat_control")
(return-type "gsize")
(parameters
'("gsize" "what")
'("gpointer" "data")
)
)
;; From gparam.h
;; From gobject/gparam.h
(define-method ref
(of-object "GParamSpec")
@ -1013,12 +848,6 @@
(return-type "none")
)
(define-method ref_sink
(of-object "GParamSpec")
(c-name "g_param_spec_ref_sink")
(return-type "GParamSpec*")
)
(define-method get_qdata
(of-object "GParamSpec")
(c-name "g_param_spec_get_qdata")
@ -1058,12 +887,6 @@
)
)
(define-method get_redirect_target
(of-object "GParamSpec")
(c-name "g_param_spec_get_redirect_target")
(return-type "GParamSpec*")
)
(define-function g_param_value_set_default
(c-name "g_param_value_set_default")
(return-type "none")
@ -1151,15 +974,6 @@
(return-type "GParamSpec*")
)
(define-method take_param
(of-object "GValue")
(c-name "g_value_take_param")
(return-type "none")
(parameters
'("GParamSpec*" "param")
)
)
(define-method set_param_take_ownership
(of-object "GValue")
(c-name "g_value_set_param_take_ownership")
@ -1178,6 +992,16 @@
)
)
(define-function _g_param_type_register_static_constant
(c-name "_g_param_type_register_static_constant")
(return-type "GType")
(parameters
'("const-gchar*" "name")
'("const-GParamSpecTypeInfo*" "pspec_info")
'("GType" "opt_type")
)
)
(define-function g_param_spec_internal
(c-name "g_param_spec_internal")
(return-type "gpointer")
@ -1192,7 +1016,6 @@
(define-function g_param_spec_pool_new
(c-name "g_param_spec_pool_new")
(is-constructor-of "GParamSpecPool")
(return-type "GParamSpecPool*")
(parameters
'("gboolean" "type_prefixing")
@ -1250,7 +1073,7 @@
;; From gparamspecs.h
;; From gobject/gparamspecs.h
(define-function g_param_spec_char
(c-name "g_param_spec_char")
@ -1513,30 +1336,9 @@
)
)
(define-function g_param_spec_override
(c-name "g_param_spec_override")
(return-type "GParamSpec*")
(parameters
'("const-gchar*" "name")
'("GParamSpec*" "overridden")
)
)
(define-function g_param_spec_gtype
(c-name "g_param_spec_gtype")
(return-type "GParamSpec*")
(parameters
'("const-gchar*" "name")
'("const-gchar*" "nick")
'("const-gchar*" "blurb")
'("GType" "is_a_type")
'("GParamFlags" "flags")
)
)
;; From gsignal.h
;; From gobject/gsignal.h
(define-function g_signal_newv
(c-name "g_signal_newv")
@ -1589,23 +1391,6 @@
(varargs #t)
)
(define-function g_signal_new_class_handler
(c-name "g_signal_new_class_handler")
(return-type "guint")
(parameters
'("const-gchar*" "signal_name")
'("GType" "itype")
'("GSignalFlags" "signal_flags")
'("GCallback" "class_handler")
'("GSignalAccumulator" "accumulator")
'("gpointer" "accu_data")
'("GSignalCMarshaller" "c_marshaller")
'("GType" "return_type")
'("guint" "n_params")
)
(varargs #t)
)
(define-function g_signal_emitv
(c-name "g_signal_emitv")
(return-type "none")
@ -1728,7 +1513,7 @@
(return-type "gulong")
(parameters
'("guint" "signal_id")
'("GQuark" "detail")
'("GQuark" "quark")
'("GSignalEmissionHook" "hook_func")
'("gpointer" "hook_data")
'("GDestroyNotify" "data_destroy")
@ -1893,16 +1678,6 @@
)
)
(define-function g_signal_override_class_handler
(c-name "g_signal_override_class_handler")
(return-type "none")
(parameters
'("const-gchar*" "signal_name")
'("GType" "instance_type")
'("GCallback" "class_handler")
)
)
(define-function g_signal_chain_from_overridden
(c-name "g_signal_chain_from_overridden")
(return-type "none")
@ -1912,46 +1687,17 @@
)
)
(define-function g_signal_chain_from_overridden_handler
(c-name "g_signal_chain_from_overridden_handler")
(define-function _g_signals_destroy
(c-name "_g_signals_destroy")
(return-type "none")
(parameters
'("gpointer" "instance")
)
(varargs #t)
)
(define-function g_signal_accumulator_true_handled
(c-name "g_signal_accumulator_true_handled")
(return-type "gboolean")
(parameters
'("GSignalInvocationHint*" "ihint")
'("GValue*" "return_accu")
'("const-GValue*" "handler_return")
'("gpointer" "dummy")
)
)
(define-function g_signal_handlers_destroy
(c-name "g_signal_handlers_destroy")
(return-type "none")
(parameters
'("gpointer" "instance")
'("GType" "itype")
)
)
;; From gsourceclosure.h
(define-method set_closure
(of-object "GSource")
(c-name "g_source_set_closure")
(return-type "none")
(parameters
'("GClosure*" "closure")
)
)
;; From gobject/gsourceclosure.h
(define-function g_io_channel_get_type
(c-name "g_io_channel_get_type")
@ -1965,7 +1711,7 @@
;; From gtype.h
;; From gobject/gtype.h
(define-function g_type_init
(c-name "g_type_init")
@ -2042,12 +1788,6 @@
(return-type "gpointer")
)
(define-method class_peek_static
(of-object "GType")
(c-name "g_type_class_peek_static")
(return-type "gpointer")
)
(define-function g_type_class_unref
(c-name "g_type_class_unref")
(return-type "none")
@ -2081,26 +1821,6 @@
)
)
(define-method default_interface_ref
(of-object "GType")
(c-name "g_type_default_interface_ref")
(return-type "gpointer")
)
(define-method default_interface_peek
(of-object "GType")
(c-name "g_type_default_interface_peek")
(return-type "gpointer")
)
(define-function g_type_default_interface_unref
(c-name "g_type_default_interface_unref")
(return-type "none")
(parameters
'("gpointer" "g_iface")
)
)
(define-method children
(of-object "GType")
(c-name "g_type_children")
@ -2158,20 +1878,6 @@
)
)
(define-method register_static_simple
(of-object "GType")
(c-name "g_type_register_static_simple")
(return-type "GType")
(parameters
'("const-gchar*" "type_name")
'("guint" "class_size")
'("GClassInitFunc" "class_init")
'("guint" "instance_size")
'("GInstanceInitFunc" "instance_init")
'("GTypeFlags" "flags")
)
)
(define-method register_dynamic
(of-object "GType")
(c-name "g_type_register_dynamic")
@ -2224,33 +1930,6 @@
)
)
(define-method interface_prerequisites
(of-object "GType")
(c-name "g_type_interface_prerequisites")
(return-type "GType*")
(parameters
'("guint*" "n_prerequisites")
)
)
(define-function g_type_class_add_private
(c-name "g_type_class_add_private")
(return-type "none")
(parameters
'("gpointer" "g_class")
'("gsize" "private_size")
)
)
(define-method get_private
(of-object "GTypeInstance")
(c-name "g_type_instance_get_private")
(return-type "gpointer")
(parameters
'("GType" "private_type")
)
)
(define-method get_plugin
(of-object "GType")
(c-name "g_type_get_plugin")
@ -2262,7 +1941,7 @@
(c-name "g_type_interface_get_plugin")
(return-type "GTypePlugin*")
(parameters
'("GType" "interface_type")
'("GType" "implementation_type")
)
)
@ -2317,24 +1996,6 @@
)
)
(define-function g_type_add_interface_check
(c-name "g_type_add_interface_check")
(return-type "none")
(parameters
'("gpointer" "check_data")
'("GTypeInterfaceCheckFunc" "check_func")
)
)
(define-function g_type_remove_interface_check
(c-name "g_type_remove_interface_check")
(return-type "none")
(parameters
'("gpointer" "check_data")
'("GTypeInterfaceCheckFunc" "check_func")
)
)
(define-method value_table_peek
(of-object "GType")
(c-name "g_type_value_table_peek")
@ -2435,7 +2096,7 @@
;; From gtypemodule.h
;; From gobject/gtypemodule.h
(define-function g_type_module_get_type
(c-name "g_type_module_get_type")
@ -2486,29 +2147,9 @@
)
)
(define-method register_enum
(of-object "GTypeModule")
(c-name "g_type_module_register_enum")
(return-type "GType")
(parameters
'("const-gchar*" "name")
'("const-GEnumValue*" "const_static_values")
)
)
(define-method register_flags
(of-object "GTypeModule")
(c-name "g_type_module_register_flags")
(return-type "GType")
(parameters
'("const-gchar*" "name")
'("const-GFlagsValue*" "const_static_values")
)
)
;; From gtypeplugin.h
;; From gobject/gtypeplugin.h
(define-function g_type_plugin_get_type
(c-name "g_type_plugin_get_type")
@ -2543,28 +2184,27 @@
(c-name "g_type_plugin_complete_interface_info")
(return-type "none")
(parameters
'("GType" "instance_type")
'("GType" "interface_type")
'("GType" "instance_type")
'("GInterfaceInfo*" "info")
)
)
;; From gvaluearray.h
;; From gobject/gvaluearray.h
(define-method get_nth
(of-object "GValueArray")
(c-name "g_value_array_get_nth")
(return-type "GValue*")
(parameters
'("guint" "index_")
'("guint" "index")
)
)
(define-function g_value_array_new
(c-name "g_value_array_new")
(is-constructor-of "GValueArray")
(return-type "GValueArray*")
(parameters
'("guint" "n_prealloced")
@ -2606,7 +2246,7 @@
(c-name "g_value_array_insert")
(return-type "GValueArray*")
(parameters
'("guint" "index_")
'("guint" "index")
'("const-GValue*" "value")
)
)
@ -2616,7 +2256,7 @@
(c-name "g_value_array_remove")
(return-type "GValueArray*")
(parameters
'("guint" "index_")
'("guint" "index")
)
)
@ -2641,11 +2281,11 @@
;; From gvaluecollector.h
;; From gobject/gvaluecollector.h
;; From gvalue.h
;; From gobject/gvalue.h
(define-method init
(of-object "GValue")
@ -2737,16 +2377,7 @@
;; From gvaluetypes.h
(define-method set_char
(of-object "GValue")
(c-name "g_value_set_char")
(return-type "none")
(parameters
'("gchar" "v_char")
)
)
;; From gobject/gvaluetypes.h
(define-method get_char
(of-object "GValue")
@ -2949,26 +2580,6 @@
(return-type "gpointer")
)
(define-function g_gtype_get_type
(c-name "g_gtype_get_type")
(return-type "GType")
)
(define-method set_gtype
(of-object "GValue")
(c-name "g_value_set_gtype")
(return-type "none")
(parameters
'("GType" "v_gtype")
)
)
(define-method get_gtype
(of-object "GValue")
(c-name "g_value_get_gtype")
(return-type "GType")
)
(define-function g_pointer_type_register_static
(c-name "g_pointer_type_register_static")
(return-type "GType")
@ -2985,15 +2596,6 @@
)
)
(define-method take_string
(of-object "GValue")
(c-name "g_value_take_string")
(return-type "none")
(parameters
'("gchar*" "v_string")
)
)
(define-method set_string_take_ownership
(of-object "GValue")
(c-name "g_value_set_string_take_ownership")

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -1,16 +1,16 @@
/* Copyright 2006 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
@ -167,87 +167,96 @@ void KeyFile::set_double(const Glib::ustring& key, double value)
g_key_file_set_double(gobj(), 0, key.c_str(), value);
}
// TODO: alternative code path with exceptions disabled
#ifdef GLIBMM_EXCEPTIONS_ENABLED
# define GLIBMM_ERROR_ARG
# define GLIBMM_THROW(err) if (err) Glib::Error::throw_exception(err)
#else
# define GLIBMM_ERROR_ARG , std::auto_ptr<Glib::Error>& error
# define GLIBMM_THROW(err) if (err) error = Glib::Error::throw_exception(err)
#endif
Glib::ArrayHandle<Glib::ustring> KeyFile::get_string_list(const Glib::ustring& group_name,
const Glib::ustring& key) const
const Glib::ustring& key
GLIBMM_ERROR_ARG) const
{
gsize length = 0;
GError* error = 0;
gsize length = 0;
GError* gerror = 0;
char** const array = g_key_file_get_string_list(
const_cast<GKeyFile*>(gobj()),
(group_name.empty()) ? 0 : group_name.c_str(),
key.c_str(), &length, &error);
key.c_str(), &length, &gerror);
if(error)
Glib::Error::throw_exception(error);
GLIBMM_THROW(gerror);
return Glib::ArrayHandle<Glib::ustring>(array, length, Glib::OWNERSHIP_DEEP);
}
// TODO: alternative code path with exceptions disabled
Glib::ArrayHandle<Glib::ustring> KeyFile::get_locale_string_list(const Glib::ustring& group_name,
const Glib::ustring& key,
const Glib::ustring& locale) const
const Glib::ustring& locale
GLIBMM_ERROR_ARG) const
{
gsize length = 0;
GError* error = 0;
gsize length = 0;
GError* gerror = 0;
char** const array = g_key_file_get_locale_string_list(
const_cast<GKeyFile*>(gobj()),
(group_name.empty()) ? 0 : group_name.c_str(),
key.c_str(), locale.c_str(), &length, &error);
key.c_str(), locale.c_str(), &length, &gerror);
if(error)
Glib::Error::throw_exception(error);
GLIBMM_THROW(gerror);
return Glib::ArrayHandle<Glib::ustring>(array, length, Glib::OWNERSHIP_DEEP);
}
// TODO: alternative code path with exceptions disabled
Glib::ArrayHandle<bool> KeyFile::get_boolean_list(const Glib::ustring& group_name,
const Glib::ustring& key) const
const Glib::ustring& key
GLIBMM_ERROR_ARG) const
{
gsize length = 0;
GError* error = 0;
gsize length = 0;
GError* gerror = 0;
gboolean *const array = g_key_file_get_boolean_list(
const_cast<GKeyFile*>(gobj()),
(group_name.empty()) ? 0 : group_name.c_str(),
key.c_str(), &length, &error);
key.c_str(), &length, &gerror);
if(error)
Glib::Error::throw_exception(error);
GLIBMM_THROW(gerror);
return Glib::ArrayHandle<bool>(array, length, Glib::OWNERSHIP_SHALLOW);
}
Glib::ArrayHandle<int> KeyFile::get_integer_list(const Glib::ustring& group_name,
const Glib::ustring& key) const
const Glib::ustring& key
GLIBMM_ERROR_ARG) const
{
gsize length = 0;
GError* error = 0;
gsize length = 0;
GError* gerror = 0;
int *const array = g_key_file_get_integer_list(
const_cast<GKeyFile*>(gobj()),
(group_name.empty()) ? 0 : group_name.c_str(),
key.c_str(), &length, &error);
key.c_str(), &length, &gerror);
if(error)
Glib::Error::throw_exception(error);
GLIBMM_THROW(gerror);
return Glib::ArrayHandle<int>(array, length, Glib::OWNERSHIP_SHALLOW);
}
Glib::ArrayHandle<double> KeyFile::get_double_list(const Glib::ustring& group_name, const Glib::ustring& key) const
Glib::ArrayHandle<double> KeyFile::get_double_list(const Glib::ustring& group_name,
const Glib::ustring& key
GLIBMM_ERROR_ARG) const
{
gdouble* integer_list = 0;
gsize length_of_list = 0;
GError* error = 0;
integer_list = g_key_file_get_double_list(const_cast<GKeyFile*>(gobj()), group_name.c_str(), key.c_str(), &length_of_list, &error);
if(error)
Glib::Error::throw_exception(error);
return Glib::ArrayHandle<double>(integer_list, length_of_list, Glib::OWNERSHIP_DEEP);
gsize length = 0;
GError* gerror = 0;
double *const array = g_key_file_get_double_list(const_cast<GKeyFile*>(gobj()),
group_name.c_str(), key.c_str(),
&length, &gerror);
GLIBMM_THROW(gerror);
return Glib::ArrayHandle<double>(array, length, Glib::OWNERSHIP_SHALLOW);
}
void KeyFile::set_string_list(const Glib::ustring& group_name, const Glib::ustring& key,
@ -286,45 +295,46 @@ void KeyFile::set_boolean_list(const Glib::ustring& group_name, const Glib::ustr
key.c_str(), const_cast<gboolean*>(list.data()), list.size());
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ustring KeyFile::get_comment() const
#else
Glib::ustring KeyFile::get_comment(std::auto_ptr<Glib::Error>& error) const
#endif
{
GError* error = 0;
char *const str = g_key_file_get_comment(const_cast<GKeyFile*>(gobj()), 0, 0, &error);
GError* gerror = 0;
char *const str = g_key_file_get_comment(const_cast<GKeyFile*>(gobj()), 0, 0, &gerror);
if(error)
Glib::Error::throw_exception(error);
GLIBMM_THROW(gerror);
return Glib::convert_return_gchar_ptr_to_ustring(str);
}
Glib::ustring KeyFile::get_comment(const Glib::ustring& group_name) const
Glib::ustring KeyFile::get_comment(const Glib::ustring& group_name GLIBMM_ERROR_ARG) const
{
GError* error = 0;
GError* gerror = 0;
char *const str = g_key_file_get_comment(const_cast<GKeyFile*>(gobj()),
(group_name.empty()) ? 0 : group_name.c_str(),
0, &error);
if(error)
Glib::Error::throw_exception(error);
0, &gerror);
GLIBMM_THROW(gerror);
return Glib::convert_return_gchar_ptr_to_ustring(str);
}
void KeyFile::set_comment(const Glib::ustring& comment)
void KeyFile::set_comment(const Glib::ustring& comment GLIBMM_ERROR_ARG)
{
GError* error = 0;
g_key_file_set_comment(gobj(), 0, 0, comment.c_str(), &error);
GError* gerror = 0;
g_key_file_set_comment(gobj(), 0, 0, comment.c_str(), &gerror);
if(error)
Glib::Error::throw_exception(error);
GLIBMM_THROW(gerror);
}
void KeyFile::set_comment(const Glib::ustring& group_name, const Glib::ustring& comment)
void KeyFile::set_comment(const Glib::ustring& group_name, const Glib::ustring& comment
GLIBMM_ERROR_ARG)
{
GError* error = 0;
GError* gerror = 0;
g_key_file_set_comment(gobj(), (group_name.empty()) ? 0 : group_name.c_str(),
0, comment.c_str(), &error);
if(error)
Glib::Error::throw_exception(error);
0, comment.c_str(), &gerror);
GLIBMM_THROW(gerror);
}
} // namespace Glib

View file

@ -1,16 +1,16 @@
/* Copyright(C) 2006 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or(at your option) any later version.
* version 2 of the License, or(at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
@ -194,8 +194,11 @@ public:
* @return The value of @a key as an integer
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
int get_integer(const Glib::ustring& key) const;
#else
int get_integer(const Glib::ustring& key, std::auto_ptr<Glib::Error>& error) const;
#endif
_WRAP_METHOD(int get_integer(const Glib::ustring& group_name, const Glib::ustring& key) const, g_key_file_get_integer, errthrow)
/** Gets the value in the first group, under @a key, interpreting it as
@ -206,8 +209,11 @@ public:
*
* @newin2p14
*/
double get_double(const Glib::ustring& key) const;
#ifdef GLIBMM_EXCEPTIONS_ENABLED
double get_double(const Glib::ustring& key) const;
#else
double get_double(const Glib::ustring& key, std::auto_ptr<Glib::Error>& error) const;
#endif
_WRAP_METHOD(double get_double(const Glib::ustring& group_name, const Glib::ustring& key) const, g_key_file_get_double, errthrow)
_WRAP_METHOD(void set_double(const Glib::ustring& group_name, const Glib::ustring& key, double value), g_key_file_set_double)
@ -227,7 +233,11 @@ public:
* @return A list containing the values requested
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ArrayHandle<Glib::ustring> get_string_list(const Glib::ustring& group_name, const Glib::ustring& key) const;
#else
Glib::ArrayHandle<Glib::ustring> get_string_list(const Glib::ustring& group_name, const Glib::ustring& key, std::auto_ptr<Glib::Error>& error) const;
#endif
_IGNORE(g_key_file_get_string_list)
/** Returns the values associated with @a key under @a group_name
@ -237,8 +247,12 @@ public:
* @return A list containing the values requested
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ArrayHandle<Glib::ustring> get_locale_string_list(const Glib::ustring& group_name, const Glib::ustring& key) const;
#else
Glib::ArrayHandle<Glib::ustring> get_locale_string_list(const Glib::ustring& group_name, const Glib::ustring& key, std::auto_ptr<Glib::Error>& error) const;
#endif
/** Returns the values associated with @a key under @a group_name
* translated into @a locale, if available.
* @param group_name The name of a group
@ -247,7 +261,11 @@ public:
* @return A list containing the values requested
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ArrayHandle<Glib::ustring> get_locale_string_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale) const;
#else
Glib::ArrayHandle<Glib::ustring> get_locale_string_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale, std::auto_ptr<Glib::Error>& error) const;
#endif
_IGNORE(g_key_file_get_locale_string_list)
/** Returns the values associated with @a key under @a group_name
@ -256,7 +274,12 @@ public:
* @return A list of booleans
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ArrayHandle<bool> get_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key) const;
#else
Glib::ArrayHandle<bool> get_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key,
std::auto_ptr<Glib::Error>& error) const;
#endif
_IGNORE(g_key_file_get_boolean_list)
/** Returns the values associated with @a key under @a group_name
@ -265,7 +288,12 @@ public:
* @return A list of integers
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ArrayHandle<int> get_integer_list(const Glib::ustring& group_name, const Glib::ustring& key) const;
#else
Glib::ArrayHandle<int> get_integer_list(const Glib::ustring& group_name, const Glib::ustring& key,
std::auto_ptr<Glib::Error>& error) const;
#endif
_IGNORE(g_key_file_get_integer_list)
/** Returns the values associated with @a key under @a group_name
@ -274,19 +302,32 @@ public:
* @return A list of doubles
* @throws Glib::KeyFileError
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ArrayHandle<double> get_double_list(const Glib::ustring& group_name, const Glib::ustring& key) const;
#else
Glib::ArrayHandle<double> get_double_list(const Glib::ustring& group_name, const Glib::ustring& key,
std::auto_ptr<Glib::Error>& error) const;
#endif
_IGNORE(g_key_file_get_double_list)
/** Get comment from top of file
* @return The comment
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ustring get_comment() const;
#else
Glib::ustring get_comment(std::auto_ptr<Glib::Error>& error) const;
#endif
/** Get comment from above a group
* @param group_name The group
* @return The comment
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ustring get_comment(const Glib::ustring& group_name) const;
#else
Glib::ustring get_comment(const Glib::ustring& group_name, std::auto_ptr<Glib::Error>& error) const;
#endif
_WRAP_METHOD(Glib::ustring get_comment(const Glib::ustring& group_name, const Glib::ustring& key) const, g_key_file_get_comment, errthrow)
@ -351,13 +392,22 @@ public:
/** Places @a comment at the start of the file, before the first group.
* @param comment The Comment
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void set_comment(const Glib::ustring& comment);
#else
void set_comment(const Glib::ustring& comment, std::auto_ptr<Glib::Error>& error);
#endif
/** Places @a comment above @a group_name.
* @param group_name The Group the comment should be above
* @param comment The comment
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void set_comment(const Glib::ustring& group_name, const Glib::ustring& comment);
#else
void set_comment(const Glib::ustring& group_name, const Glib::ustring& comment,
std::auto_ptr<Glib::Error>& error);
#endif
/** Places a comment above @a key from @a group_name.
* @param key Key comment should be above

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -1,16 +1,16 @@
/* Copyright (C) 2007 glibmm development team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2004 The glibmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2004 The glibmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2004 The glibmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -1,16 +1,16 @@
/* Copyright (C) 2007 The glibmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -1,16 +1,16 @@
/* Copyright (C) 2007 The glibmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -6,16 +6,16 @@ dnl Copyright 2001 Free Software Foundation
dnl Copyright 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl Library General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl You should have received a copy of the GNU Library General Public
dnl License along with this library; if not, write to the Free
dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
@ -70,7 +70,6 @@ namespace Glib
/**** process spawning functions *******************************************/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
@ -80,21 +79,10 @@ void spawn_async_with_pipes(const std::string& working_directory,
int* standard_input,
int* standard_output,
int* standard_error)
#else
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid,
int* standard_input,
int* standard_output,
int* standard_error, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
const bool setup_slot = !child_setup.empty();
sigc::slot<void> child_setup_ = child_setup;
GError* gerror = 0;
GError* error = 0;
g_spawn_async_with_pipes(
working_directory.c_str(),
@ -105,18 +93,12 @@ void spawn_async_with_pipes(const std::string& working_directory,
(setup_slot) ? &child_setup_ : 0,
child_pid,
standard_input, standard_output, standard_error,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
@ -125,20 +107,10 @@ void spawn_async_with_pipes(const std::string& working_directory,
int* standard_input,
int* standard_output,
int* standard_error)
#else
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid,
int* standard_input,
int* standard_output,
int* standard_error, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
const bool setup_slot = !child_setup.empty();
sigc::slot<void> child_setup_ = child_setup;
GError* gerror = 0;
GError* error = 0;
g_spawn_async_with_pipes(
working_directory.c_str(),
@ -148,36 +120,22 @@ void spawn_async_with_pipes(const std::string& working_directory,
(setup_slot) ? &child_setup_ : 0,
child_pid,
standard_input, standard_output, standard_error,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid)
#else
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
const bool setup_slot = !child_setup.empty();
sigc::slot<void> child_setup_ = child_setup;
GError* gerror = 0;
GError* error = 0;
g_spawn_async(
working_directory.c_str(),
@ -187,34 +145,21 @@ void spawn_async(const std::string& working_directory,
(setup_slot) ? &child_setup_callback : 0,
(setup_slot) ? &child_setup_ : 0,
child_pid,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid)
#else
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
const bool setup_slot = !child_setup.empty();
sigc::slot<void> child_setup_ = child_setup;
GError* gerror = 0;
GError* error = 0;
g_spawn_async(
working_directory.c_str(),
@ -223,18 +168,12 @@ void spawn_async(const std::string& working_directory,
(setup_slot) ? &child_setup_callback : 0,
(setup_slot) ? &child_setup_ : 0,
child_pid,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
@ -243,23 +182,13 @@ void spawn_sync(const std::string& working_directory,
std::string* standard_output,
std::string* standard_error,
int* exit_status)
#else
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
std::string* standard_output,
std::string* standard_error,
int* exit_status, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
const bool setup_slot = !child_setup.empty();
sigc::slot<void> child_setup_ = child_setup;
Glib::ScopedPtr<char> buf_standard_output;
Glib::ScopedPtr<char> buf_standard_error;
GError* gerror = 0;
GError* error = 0;
g_spawn_sync(
working_directory.c_str(),
@ -271,21 +200,15 @@ void spawn_sync(const std::string& working_directory,
(standard_output) ? buf_standard_output.addr() : 0,
(standard_error) ? buf_standard_error.addr() : 0,
exit_status,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
copy_output_buf(standard_output, buf_standard_output.get());
copy_output_buf(standard_error, buf_standard_error.get());
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
@ -293,22 +216,13 @@ void spawn_sync(const std::string& working_directory,
std::string* standard_output,
std::string* standard_error,
int* exit_status)
#else
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
std::string* standard_output,
std::string* standard_error,
int* exit_status, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
const bool setup_slot = !child_setup.empty();
sigc::slot<void> child_setup_ = child_setup;
Glib::ScopedPtr<char> buf_standard_output;
Glib::ScopedPtr<char> buf_standard_error;
GError* gerror = 0;
GError* error = 0;
g_spawn_sync(
working_directory.c_str(),
@ -319,68 +233,42 @@ void spawn_sync(const std::string& working_directory,
(standard_output) ? buf_standard_output.addr() : 0,
(standard_error) ? buf_standard_error.addr() : 0,
exit_status,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
copy_output_buf(standard_output, buf_standard_output.get());
copy_output_buf(standard_error, buf_standard_error.get());
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_command_line_async(const std::string& command_line)
#else
void spawn_command_line_async(const std::string& command_line, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
g_spawn_command_line_async(command_line.c_str(), &gerror);
GError* error = 0;
g_spawn_command_line_async(command_line.c_str(), &error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_command_line_sync(const std::string& command_line,
std::string* standard_output,
std::string* standard_error,
int* exit_status)
#else
void spawn_command_line_sync(const std::string& command_line,
std::string* standard_output,
std::string* standard_error,
int* exit_status, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
Glib::ScopedPtr<char> buf_standard_output;
Glib::ScopedPtr<char> buf_standard_error;
GError* gerror = 0;
GError* error = 0;
g_spawn_command_line_sync(
command_line.c_str(),
(standard_output) ? buf_standard_output.addr() : 0,
(standard_error) ? buf_standard_error.addr() : 0,
exit_status,
&gerror);
&error);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(error)
Glib::Error::throw_exception(error);
copy_output_buf(standard_output, buf_standard_output.get());
copy_output_buf(standard_error, buf_standard_error.get());

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
@ -192,7 +192,6 @@ _WRAP_GERROR(SpawnError, GSpawnError, G_SPAWN_ERROR, NO_GTYPE, s#^2BIG$#TOOBIG#)
* to users. If an error occurs, @a child_pid, @a standard_input, @a standard_output,
* and @a standard_error will not be filled with valid values.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
@ -202,17 +201,6 @@ void spawn_async_with_pipes(const std::string& working_directory,
int* standard_input = 0,
int* standard_output = 0,
int* standard_error = 0);
#else
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid,
int* standard_input,
int* standard_output,
int* standard_error, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Like the main spawn_async_with_pipes() method, but inheriting the parent's environment.
*
@ -231,7 +219,7 @@ void spawn_async_with_pipes(const std::string& working_directory,
* to users. If an error occurs, @a child_pid, @a standard_input, @a standard_output,
* and @a standard_error will not be filled with valid values.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags = SpawnFlags(0),
@ -240,16 +228,6 @@ void spawn_async_with_pipes(const std::string& working_directory,
int* standard_input = 0,
int* standard_output = 0,
int* standard_error = 0);
#else
void spawn_async_with_pipes(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid,
int* standard_input,
int* standard_output,
int* standard_error, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** See pawn_async_with_pipes() for a full description. This function
* simply calls the spawn_async_with_pipes() without any pipes.
@ -272,21 +250,12 @@ void spawn_async_with_pipes(const std::string& working_directory,
* the message field of returned errors should be displayed
* to users.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags = SpawnFlags(0),
const sigc::slot<void>& child_setup = sigc::slot<void>(),
Pid* child_pid = 0);
#else
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Like the main spawn_async() method, but inheriting the parent's environment.
*
@ -302,19 +271,11 @@ void spawn_async(const std::string& working_directory,
* the message field of returned errors should be displayed
* to users.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags = SpawnFlags(0),
const sigc::slot<void>& child_setup = sigc::slot<void>(),
Pid* child_pid = 0);
#else
void spawn_async(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
Pid* child_pid, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Executes a child synchronously (waits for the child to exit before returning).
* All output from the child is stored in @a standard_output and @a standard_error,
@ -348,7 +309,6 @@ void spawn_async(const std::string& working_directory,
* to users. If an error occurs, @a child_pid, @a standard_input, @a standard_output,
* and @a standard_error will not be filled with valid values.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
@ -357,16 +317,6 @@ void spawn_sync(const std::string& working_directory,
std::string* standard_output = 0,
std::string* standard_error = 0,
int* exit_status = 0);
#else
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
const Glib::ArrayHandle<std::string>& envp,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
std::string* standard_output,
std::string* standard_error,
int* exit_status, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Like the main spawn_sync() method, but inheriting the parent's environment.
*
@ -384,7 +334,6 @@ void spawn_sync(const std::string& working_directory,
* to users. If an error occurs, @a child_pid, @a standard_input, @a standard_output,
* and @a standard_error will not be filled with valid values.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags = SpawnFlags(0),
@ -392,15 +341,6 @@ void spawn_sync(const std::string& working_directory,
std::string* standard_output = 0,
std::string* standard_error = 0,
int* exit_status = 0);
#else
void spawn_sync(const std::string& working_directory,
const Glib::ArrayHandle<std::string>& argv,
SpawnFlags flags,
const sigc::slot<void>& child_setup,
std::string* standard_output,
std::string* standard_error ,
int* exit_status, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** A simple version of spawn_async() that parses a command line with
* shell_parse_argv() and passes it to spawn_async(). It runs a
@ -419,11 +359,7 @@ void spawn_sync(const std::string& working_directory,
* to users.
* @throws ShellError If the command line could not be parsed.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_command_line_async(const std::string& command_line);
#else
void spawn_command_line_async(const std::string& command_line, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** A simple version of spawn_sync() with little-used parameters
* removed, taking a command line instead of an argument vector. See
@ -458,17 +394,10 @@ void spawn_command_line_async(const std::string& command_line, std::auto_ptr<Gli
* to users.
* @throws ShellError If the command line could not be parsed.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void spawn_command_line_sync(const std::string& command_line,
std::string* standard_output = 0,
std::string* standard_error = 0,
int* exit_status = 0);
#else
void spawn_command_line_sync(const std::string& command_line,
std::string* standard_output,
std::string* standard_error,
int* exit_status, std::auto_ptr<Glib::Error>& error;
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** On some platforms, notably WIN32, the Pid type represents a resource
* which must be closed to prevent resource leaking. close_pid()

View file

@ -7,16 +7,16 @@ dnl
dnl Currently maintained by Tero Pulkkinen. <terop@modeemi.cs.tut.fi>
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl Library General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl You should have received a copy of the GNU Library General Public
dnl License along with this library; if not, write to the Free
dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -4,16 +4,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -3,16 +3,16 @@
/* Copyright (C) 2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

View file

@ -1,22 +1,22 @@
divert(-1)
dnl $Id: value_basictypes.cc.m4 779 2009-01-19 17:58:50Z murrayc $
dnl $Id: value_basictypes.cc.m4 348 2006-11-22 11:14:43Z murrayc $
dnl Glib::Value specializations for fundamental types
dnl
dnl Copyright 2002 The gtkmm Development Team
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl Library General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl You should have received a copy of the GNU Library General Public
dnl License along with this library; if not, write to the Free
dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

View file

@ -1,22 +1,22 @@
divert(-1)
dnl $Id: value_basictypes.h.m4 779 2009-01-19 17:58:50Z murrayc $
dnl $Id: value_basictypes.h.m4 2 2003-01-07 16:59:16Z murrayc $
dnl Glib::Value specializations for fundamental types
dnl
dnl Copyright 2002 The gtkmm Development Team
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl Library General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl You should have received a copy of the GNU Library General Public
dnl License along with this library; if not, write to the Free
dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.