diff -Nru gobject-introspection-1.45.3/build/gen-cairo-gir.py gobject-introspection-1.46.0/build/gen-cairo-gir.py --- gobject-introspection-1.45.3/build/gen-cairo-gir.py 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/gen-cairo-gir.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,59 +0,0 @@ -#!/usr/bin/python -# -# Expand the bundled cairo-1.0.gir.in files -# for use in Visual C++ builds of G-I -# -# Author: Fan, Chun-wei -# Date: January 20, 2014 -# -# (Adapted from setup.py in -# $(glib_src_root)/build/win32/setup.py written by Shixin Zeng) - -import os -import sys -import re -import string -import subprocess -import optparse - -def process_in(src, dest, vars): - RE_VARS = re.compile(r'%(\w+?)%') - with open(src, 'r') as s: - with open(dest, 'w') as d: - for i in s: - i = RE_VARS.sub(lambda x: str(vars[x.group(1)]), i) - d.write(i) - -def parent_dir(path): - if not os.path.isabs(path): - path = os.path.abspath(path) - if os.path.isfile(path): - path = os.path.dirname(path) - return os.path.split(path)[0] - -def setup_vars_cairo(src, dest, dllname): - vars = {} - vars['CAIRO_GIR_PACKAGE'] = 'cairo-gobject' - vars['CAIRO_SHARED_LIBRARY'] = '%s' % dllname - process_in (src, dest, vars) - -def main(argv): - parser = optparse.OptionParser() - parser.add_option('--dllname', dest='dllname', action='store', help='Full file name of the Cairo-GObject DLL for the Cairo Introspection File') - parser.add_option('--vsver', dest='vsver', action='store', help='Version of Visual Studio used, 9 or 2008 for VS 2008, 10 or 2010 for VS2010, 11 or 2012 for VS2012') - opt, args = parser.parse_args(argv) - if opt.dllname is None: - print ('dllname must be specified. Please refer to %s -h for more information' % os.path.basename(__file__)) - sys.exit() - - # Get the srcroot and the path where the bundled .gir files reside in the package - srcroot = parent_dir(__file__) - preset_gir_path = os.path.join(srcroot, 'gir') - - # Set up variables in cairo-1.0.gir.in to produce cairo-1.0.gir - setup_vars_cairo(os.path.join(preset_gir_path, 'cairo-1.0.gir.in'), - os.path.join(preset_gir_path, 'cairo-1.0.gir'), - opt.dllname) - -if __name__ == '__main__': - sys.exit(main(sys.argv)) diff -Nru gobject-introspection-1.45.3/build/gen-win32-cairo-gir.py gobject-introspection-1.46.0/build/gen-win32-cairo-gir.py --- gobject-introspection-1.45.3/build/gen-win32-cairo-gir.py 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/build/gen-win32-cairo-gir.py 2015-07-30 10:32:27.000000000 +0000 @@ -0,0 +1,43 @@ +#!/usr/bin/python +# +# Expand the bundled cairo-1.0.gir.in files +# for use in Visual C++ builds of G-I +# +# Author: Fan, Chun-wei +# Date: January 20, 2014 +# +# (Adapted from setup.py in +# $(glib_src_root)/build/win32/setup.py written by Shixin Zeng) + +import os +import sys +import optparse + +from gi_msvc_build_utils import process_in +from gi_msvc_build_utils import parent_dir + +def setup_vars_cairo(src, dest, dllname): + vars = {} + vars['CAIRO_GIR_PACKAGE'] = 'cairo-gobject' + vars['CAIRO_SHARED_LIBRARY'] = '%s' % dllname + process_in (src, dest, vars, 1) + +def main(argv): + parser = optparse.OptionParser() + parser.add_option('--dllname', dest='dllname', action='store', help='Full file name of the Cairo-GObject DLL for the Cairo Introspection File') + opt, args = parser.parse_args(argv) + if opt.dllname is None: + print ('dllname must be specified. Please refer to %s -h for more information' % os.path.basename(__file__)) + sys.exit() + + # Get the srcroot and the path where the bundled .gir files reside in the package + srcroot = parent_dir(__file__) + preset_gir_path = os.path.join(srcroot, 'gir') + + # Set up variables in cairo-1.0.gir.in to produce cairo-1.0.gir + setup_vars_cairo(os.path.join(preset_gir_path, 'cairo-1.0.gir.in'), + 'cairo-1.0.gir', + opt.dllname) + +if __name__ == '__main__': + sys.exit(main(sys.argv)) diff -Nru gobject-introspection-1.45.3/build/gen-win32-g-ir-tools.py gobject-introspection-1.46.0/build/gen-win32-g-ir-tools.py --- gobject-introspection-1.45.3/build/gen-win32-g-ir-tools.py 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/build/gen-win32-g-ir-tools.py 2015-07-30 10:32:27.000000000 +0000 @@ -0,0 +1,51 @@ +#!/usr/bin/python +# +# Expand the bundled cairo-1.0.gir.in files +# for use in Visual C++ builds of G-I +# +# Author: Fan, Chun-wei +# Date: January 20, 2014 +# +# (Adapted from setup.py in +# $(glib_src_root)/build/win32/setup.py written by Shixin Zeng) + +import os +import sys +import optparse + +from gi_msvc_build_utils import process_in +from gi_msvc_build_utils import parent_dir + +def setup_vars_tools(module, func, srcfile, outfile): + vars = {} + + # Well, we are using the "relocatable" feature on Windows... + blah = 'this\\\\is\\\\ignored\\\\on\\\\windows' + vars['datarootdir'] = blah + vars['libdir'] = blah + + # This doesn't really matter for cmd.exe usage, but + # let's just set this like this here, in case one + # wants to use MinGW with the scripts generated here + vars['PYTHON'] = 'python' + + # The parts that really matter. + vars['TOOL_MODULE'] = module + vars['TOOL_FUNCTION'] = func + process_in(srcfile, outfile, vars, 2) + +def main(argv): + modules = ['scannermain','annotationmain','docmain'] + funcs = ['scanner_main','annotation_main','doc_main'] + tools = ['g-ir-scanner','g-ir-annotation-tool','g-ir-doc-tool'] + + srcroot = parent_dir(__file__) + preset_tools_path = os.path.join(srcroot, 'tools') + src = os.path.join(preset_tools_path, 'g-ir-tool-template.in') + + for i in range(3): + dest = os.path.join(preset_tools_path, tools[i]) + setup_vars_tools(modules[i], funcs[i], src, dest) + +if __name__ == '__main__': + sys.exit(main(sys.argv)) diff -Nru gobject-introspection-1.45.3/build/gi-build-common-msvc.mak gobject-introspection-1.46.0/build/gi-build-common-msvc.mak --- gobject-introspection-1.45.3/build/gi-build-common-msvc.mak 2014-07-09 18:00:28.000000000 +0000 +++ gobject-introspection-1.46.0/build/gi-build-common-msvc.mak 2015-07-30 10:32:27.000000000 +0000 @@ -15,11 +15,3 @@ G_IR_SCANNER_CURRENT = ..\tools\g-ir-scanner G_IR_DOC_TOOL_CURRENT = ..\tools\g-ir-doc-tool G_IR_COMPILER_CURRENT = $(BINDIR)\g-ir-compiler.exe - -!if "$(VALID_GCC_INSTPATH)" == "TRUE" -!if "$(PLAT)" == "x64" -TIME_T_DEFINE = -Dtime_t=long long -!else -TIME_T_DEFINE = -Dtime_t=long -!endif -!endif diff -Nru gobject-introspection-1.45.3/build/gi-introspection-msvc.mak gobject-introspection-1.46.0/build/gi-introspection-msvc.mak --- gobject-introspection-1.45.3/build/gi-introspection-msvc.mak 2014-07-09 18:00:28.000000000 +0000 +++ gobject-introspection-1.46.0/build/gi-introspection-msvc.mak 2015-07-30 10:32:27.000000000 +0000 @@ -2,7 +2,13 @@ # Change or pass in as a variable/env var if needed # The main DLLs that are used to build introspection files that are "installed" -CAIROGOBJECT_DLLNAME= cairo-gobject-vs$(VSVER) +!if "$(CAIROGOBJECT_DLLNAME)" == "" +!if "$(USE_LIBTOOL_NAME)" == "1" +CAIROGOBJECT_DLLNAME = libcairo-gobject-2.dll +!else +CAIROGOBJECT_DLLNAME = cairo-gobject-vs$(VSVER).dll +!endif +!endif # Please do not change anything after this line @@ -44,7 +50,7 @@ GIRepository-$(GLIB_APIVERSION).typelib !if "$(BUILD_INTROSPECTION)" == "TRUE" -all: setgirbuildnev $(built_install_girs) $(built_install_typelibs) $(bundled_girs) $(bundled_typelibs) +all: setgirbuildnev $(built_install_girs) $(built_install_typelibs) $(bundled_girs) $(bundled_typelibs) msg_cairo !include gi-setenv-msvc.mak @@ -128,9 +134,8 @@ # Bundled cairo-1.0.gir.in processing cairo-1.0.gir: ..\gir\cairo-1.0.gir.in - @-echo Generating and copying $@ from $*.gir.in... - @-if not exist ..\gir\$*.gir $(PYTHON2) gen-cairo-gir.py --dllname=$(CAIROGOBJECT_DLLNAME).dll - @-copy ..\gir\$*.gir $@ + @-echo Generating $@ from $*.gir.in... + @-$(PYTHON2) gen-win32-cairo-gir.py --dllname=$(CAIROGOBJECT_DLLNAME) # Copy the .gir's bundled with G-I to this folder $(bundled_girs): ..\gir\win32-1.0.gir ..\gir\fontconfig-2.0.gir ..\gir\freetype2-2.0.gir ..\gir\GL-1.0.gir ..\gir\libxml2-2.0.gir @@ -147,6 +152,20 @@ @-echo Compiling the bundled $*.gir that came with the GobjectIntrospection package... @-$(G_IR_COMPILER_CURRENT) --includedir=. --debug --verbose $*.gir -o $@ +msg_cairo: + @-echo. + @-echo ************* Note *********************************** + @-echo The cairo-1.0.gir links to $(CAIROGOBJECT_DLLNAME), + @-echo please ensure that this is the correct DLL where the + @-echo cairo-gobject symbols can be loaded, which needs to + @-echo found when running programs or scripts that would + @-echo cairo-1.0.typelib. + @-echo. + @-echo If not, please clean the build and redo the build + @-echo specifying the correct DLL by passing in + @-echo CAIROGOBJECT_DLLNAME^=^ when + @-echo invoking this NMake Makefile + install-introspection: setgirbuildnev $(built_install_girs) $(built_install_typelibs) $(bundled_girs) cairo-1.0.gir $(bundled_typelibs) @-mkdir $(G_IR_INCLUDEDIR) @-mkdir $(G_IR_TYPELIBDIR) @@ -164,7 +183,6 @@ !endif clean: - @-del /f/q ..\gir\cairo-$(GI_APIVERSION).gir @-del /f/q *.typelib @-del /f/q *.gir @-del /f/q gi_list diff -Nru gobject-introspection-1.45.3/build/gi_msvc_build_utils.py gobject-introspection-1.46.0/build/gi_msvc_build_utils.py --- gobject-introspection-1.45.3/build/gi_msvc_build_utils.py 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/build/gi_msvc_build_utils.py 2015-07-30 10:32:27.000000000 +0000 @@ -0,0 +1,20 @@ +import os +import re + +def process_in(src, dest, vars, mode): + if mode == 1: + RE_VARS = re.compile(r'%(\w+?)%') + if mode == 2: + RE_VARS = re.compile(r'@(\w+?)@') + with open(src, 'r') as s: + with open(dest, 'w') as d: + for i in s: + i = RE_VARS.sub(lambda x: str(vars[x.group(1)]), i) + d.write(i) + +def parent_dir(path): + if not os.path.isabs(path): + path = os.path.abspath(path) + if os.path.isfile(path): + path = os.path.dirname(path) + return os.path.split(path)[0] diff -Nru gobject-introspection-1.45.3/build/gi-setenv-msvc.mak gobject-introspection-1.46.0/build/gi-setenv-msvc.mak --- gobject-introspection-1.45.3/build/gi-setenv-msvc.mak 2014-07-09 18:00:28.000000000 +0000 +++ gobject-introspection-1.46.0/build/gi-setenv-msvc.mak 2015-07-30 10:32:27.000000000 +0000 @@ -8,6 +8,6 @@ @set UNINSTALLED_INTROSPECTION_SRCDIR=.. @set UNINSTALLED_INTROSPECTION_BUILDDIR=.. @set PYTHONPATH=..;$(BINDIR) - @set PATH=$(BINDIR);$(BASEDIR)\bin;$(PATH);$(MINGWDIR)\bin + @set PATH=$(BINDIR);$(BASEDIR)\bin;$(PATH) @set PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) @set LIB=win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(BASEDIR)\lib;$(LIB) diff -Nru gobject-introspection-1.45.3/build/introspection-msvc.mak gobject-introspection-1.46.0/build/introspection-msvc.mak --- gobject-introspection-1.45.3/build/introspection-msvc.mak 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/introspection-msvc.mak 2015-07-30 10:32:27.000000000 +0000 @@ -23,10 +23,8 @@ # Don't change anything following this line! VALID_PKG_CONFIG_PATH = FALSE -VALID_GCC_INSTPATH = FALSE MSG_INVALID_PKGCONFIG = You must set or specifiy a valid PKG_CONFIG_PATH -MSG_INVALID_MINGWDIR = You must set or specifiy a valid MINGWDIR, where gcc.exe can be found in %MINGWDIR%\bin MSG_INVALID_CFG = You need to specify or set CFG to be release or debug to use this Makefile to build the Introspection Files ERROR_MSG = @@ -47,15 +45,7 @@ VALID_PKG_CONFIG_PATH = FALSE !endif -!if ![IF EXIST %MINGWDIR%\bin\gcc.exe @echo VALID_GCC_INSTPATH=TRUE > gcccheck.x] -!endif - -!if ![IF NOT EXIST %MINGWDIR%\bin\gcc.exe @echo VALID_GCC_INSTPATH=FALSE > gcccheck.x] -!endif - -!include gcccheck.x - -!if ![del $(ERRNUL) /q/f pkgconfig.chksize gcccheck.x] +!if ![del $(ERRNUL) /q/f pkgconfig.chksize] !endif VALID_CFGSET = FALSE @@ -63,11 +53,6 @@ VALID_CFGSET = TRUE !endif -!if "$(VALID_GCC_INSTPATH)" != "TRUE" -BUILD_INTROSPECTION = FALSE -ERROR_MSG = $(MSG_INVALID_MINGWDIR) -!endif - !if "$(VALID_PKG_CONFIG_PATH)" != "TRUE" BUILD_INTROSPECTION = FALSE ERROR_MSG = $(MSG_INVALID_PKGCONFIG) diff -Nru gobject-introspection-1.45.3/build/Makefile.am gobject-introspection-1.46.0/build/Makefile.am --- gobject-introspection-1.45.3/build/Makefile.am 2014-07-09 18:00:28.000000000 +0000 +++ gobject-introspection-1.46.0/build/Makefile.am 2015-07-30 10:32:27.000000000 +0000 @@ -1,10 +1,12 @@ SUBDIRS = win32 EXTRA_DIST = \ - detectenv_msvc.mak \ - gen-cairo-gir.py \ - gi-setenv-msvc.mak \ - gi-tests-msvc.mak \ + detectenv_msvc.mak \ + gen-win32-cairo-gir.py \ + gen-win32-g-ir-tools.py \ gi-build-common-msvc.mak \ gi-introspection-msvc.mak \ + gi_msvc_build_utils.py \ + gi-setenv-msvc.mak \ + gi-tests-msvc.mak \ introspection-msvc.mak diff -Nru gobject-introspection-1.45.3/build/Makefile.in gobject-introspection-1.46.0/build/Makefile.in --- gobject-introspection-1.45.3/build/Makefile.in 2015-07-03 20:30:32.000000000 +0000 +++ gobject-introspection-1.46.0/build/Makefile.in 2015-09-22 11:24:38.000000000 +0000 @@ -362,12 +362,14 @@ top_srcdir = @top_srcdir@ SUBDIRS = win32 EXTRA_DIST = \ - detectenv_msvc.mak \ - gen-cairo-gir.py \ - gi-setenv-msvc.mak \ - gi-tests-msvc.mak \ + detectenv_msvc.mak \ + gen-win32-cairo-gir.py \ + gen-win32-g-ir-tools.py \ gi-build-common-msvc.mak \ gi-introspection-msvc.mak \ + gi_msvc_build_utils.py \ + gi-setenv-msvc.mak \ + gi-tests-msvc.mak \ introspection-msvc.mak all: all-recursive diff -Nru gobject-introspection-1.45.3/build/win32/vs10/gi-extra-paths.props gobject-introspection-1.46.0/build/win32/vs10/gi-extra-paths.props --- gobject-introspection-1.45.3/build/win32/vs10/gi-extra-paths.props 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/gi-extra-paths.props 2015-07-30 10:32:27.000000000 +0000 @@ -7,7 +7,7 @@ c:\\python27 - c:\\python27.x64 + $(PythonDir).x64 <_PropertySheetDisplayName>giextrapathsprops diff -Nru gobject-introspection-1.45.3/build/win32/vs10/gi-gen-srcs.props gobject-introspection-1.46.0/build/win32/vs10/gi-gen-srcs.props --- gobject-introspection-1.45.3/build/win32/vs10/gi-gen-srcs.props 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/gi-gen-srcs.props 2015-07-30 10:32:27.000000000 +0000 @@ -1,17 +1,12 @@ - + copy ..\..\..\config.h.win32 ..\..\..\config.h - copy ..\..\..\tools\g-ir-scanner.in ..\..\..\tools\g-ir-scanner - copy ..\..\..\tools\g-ir-doc-tool.in ..\..\..\tools\g-ir-doc-tool - copy ..\..\..\tools\g-ir-annotation-tool.in ..\..\..\tools\g-ir-annotation-tool - -echo EXPORTS > $(DefDir)\girepository.def -cl -EP ..\..\..\girepository\girepository.symbols >> $(DefDir)\girepository.def - + $(PythonDir)\python ..\..\..\build\gen-win32-g-ir-tools.py + $(PythonDirX64)\python ..\..\..\build\gen-win32-g-ir-tools.py <_PropertySheetDisplayName>gigensrcsprops @@ -20,17 +15,11 @@ $(CopyConfigH) - - $(CopyGIRScanner) + + $(GenToolsScripts) - - $(CopyGIRDocTool) - - - $(CopyGIRAnnotationTool) - - - $(GenerateGIRDef) + + $(GenToolsScriptsX64) diff -Nru gobject-introspection-1.45.3/build/win32/vs10/gi-install.props gobject-introspection-1.46.0/build/win32/vs10/gi-install.props --- gobject-introspection-1.45.3/build/win32/vs10/gi-install.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/gi-install.props 2015-09-22 11:27:24.000000000 +0000 @@ -65,6 +65,7 @@ copy ..\..\..\giscanner\libtoolimporter.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\maintransformer.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\message.py $(CopyDir)\lib\gobject-introspection\giscanner +copy ..\..\..\giscanner\msvccompiler.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\shlibs.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\scannermain.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\sectionparser.py $(CopyDir)\lib\gobject-introspection\giscanner diff -Nru gobject-introspection-1.45.3/build/win32/vs10/gi-prebuild.vcxproj gobject-introspection-1.46.0/build/win32/vs10/gi-prebuild.vcxproj --- gobject-introspection-1.45.3/build/win32/vs10/gi-prebuild.vcxproj 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/gi-prebuild.vcxproj 2015-07-30 10:32:27.000000000 +0000 @@ -95,47 +95,19 @@ $(CopyConfigH) ..\..\..\config.h;%(Outputs) - - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - - - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - - - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) + + Generating Tools Scripts... + $(GenToolsScripts) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScripts) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScriptsX64) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScriptsX64) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) diff -Nru gobject-introspection-1.45.3/build/win32/vs10/girepository.vcxproj gobject-introspection-1.46.0/build/win32/vs10/girepository.vcxproj --- gobject-introspection-1.45.3/build/win32/vs10/girepository.vcxproj 2015-07-03 20:31:08.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/girepository.vcxproj 2015-09-22 11:27:23.000000000 +0000 @@ -85,9 +85,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -111,9 +108,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -142,9 +136,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -171,9 +162,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll diff -Nru gobject-introspection-1.45.3/build/win32/vs10/girepository.vcxprojin gobject-introspection-1.46.0/build/win32/vs10/girepository.vcxprojin --- gobject-introspection-1.45.3/build/win32/vs10/girepository.vcxprojin 2015-03-24 00:50:04.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/girepository.vcxprojin 2015-07-30 10:32:27.000000000 +0000 @@ -85,9 +85,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -111,9 +108,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -142,9 +136,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -171,9 +162,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll diff -Nru gobject-introspection-1.45.3/build/win32/vs10/README.txt gobject-introspection-1.46.0/build/win32/vs10/README.txt --- gobject-introspection-1.45.3/build/win32/vs10/README.txt 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs10/README.txt 2015-07-30 10:32:27.000000000 +0000 @@ -48,19 +48,15 @@ \vs10\\lib\. The libintl.h that is used for building GLib needs to be in -\vs10\\include, if not already done so - -You will also need a working GCC/MinGW compiler installation -in order to generate the .gir and .typelib files. One may be -obtained from the mingw or the mingw64 project. +\vs10\\include, if not already done so. A working pkg-config tool is also required-it may be obtained from http://www.gtk.org/download/win32.php [32-bit] http://www.gtk.org/download/win64.php [64-bit] *** Note! *** -Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH and -MinGW, the build of G-I is now a 2-step process: one with the Visual Studio Projects that +Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH, +the build of G-I is now a 2-step process: one with the Visual Studio Projects that will build the libraries, tools, Python Module and test DLLs (except for the everything test), and the other one with NMake Makefiles for building the introspection files. Please note that if one needs to change the installation location @@ -77,13 +73,6 @@ You need to use an x64/amd64 version of Python for x64 builds, and a Win32/x86 version of Python for Win32/x86 builds PKG_CONFIG_PATH: Location of the .pc (pkg-config) files, especially for the GLib .pc files. -MINGWDIR: Root installation folder for your Windows GCC (such as MinGW). For example, - if your gcc executable (gcc.exe) is in c:\mingw\bin, use "set MINGWDIR=c:\mingw" - You need to use an x64/amd64 version of gcc for x64 builds, and a Win32/x86 - version of gcc for Win32/x86 builds - -GCC is currently needed to as the GCC preprocessor is used to create the introspection dump source -file, which is then compiled with the Visual C++ compiler to produce the .gir files. Please see $(srcroot)\build\gi-introspection-msvc.mak for more details. Doing "nmake -f gi-introspection-msvc.mak (options omitted)" will build the various introspection files, diff -Nru gobject-introspection-1.45.3/build/win32/vs11/gi-extra-paths.props gobject-introspection-1.46.0/build/win32/vs11/gi-extra-paths.props --- gobject-introspection-1.45.3/build/win32/vs11/gi-extra-paths.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs11/gi-extra-paths.props 2015-09-22 11:27:24.000000000 +0000 @@ -7,7 +7,7 @@ c:\\python27 - c:\\python27.x64 + $(PythonDir).x64 <_PropertySheetDisplayName>giextrapathsprops diff -Nru gobject-introspection-1.45.3/build/win32/vs11/gi-gen-srcs.props gobject-introspection-1.46.0/build/win32/vs11/gi-gen-srcs.props --- gobject-introspection-1.45.3/build/win32/vs11/gi-gen-srcs.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs11/gi-gen-srcs.props 2015-09-22 11:27:24.000000000 +0000 @@ -1,17 +1,12 @@ - + copy ..\..\..\config.h.win32 ..\..\..\config.h - copy ..\..\..\tools\g-ir-scanner.in ..\..\..\tools\g-ir-scanner - copy ..\..\..\tools\g-ir-doc-tool.in ..\..\..\tools\g-ir-doc-tool - copy ..\..\..\tools\g-ir-annotation-tool.in ..\..\..\tools\g-ir-annotation-tool - -echo EXPORTS > $(DefDir)\girepository.def -cl -EP ..\..\..\girepository\girepository.symbols >> $(DefDir)\girepository.def - + $(PythonDir)\python ..\..\..\build\gen-win32-g-ir-tools.py + $(PythonDirX64)\python ..\..\..\build\gen-win32-g-ir-tools.py <_PropertySheetDisplayName>gigensrcsprops @@ -20,17 +15,11 @@ $(CopyConfigH) - - $(CopyGIRScanner) + + $(GenToolsScripts) - - $(CopyGIRDocTool) - - - $(CopyGIRAnnotationTool) - - - $(GenerateGIRDef) + + $(GenToolsScriptsX64) diff -Nru gobject-introspection-1.45.3/build/win32/vs11/gi-install.props gobject-introspection-1.46.0/build/win32/vs11/gi-install.props --- gobject-introspection-1.45.3/build/win32/vs11/gi-install.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs11/gi-install.props 2015-09-22 11:27:24.000000000 +0000 @@ -65,6 +65,7 @@ copy ..\..\..\giscanner\libtoolimporter.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\maintransformer.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\message.py $(CopyDir)\lib\gobject-introspection\giscanner +copy ..\..\..\giscanner\msvccompiler.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\shlibs.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\scannermain.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\sectionparser.py $(CopyDir)\lib\gobject-introspection\giscanner diff -Nru gobject-introspection-1.45.3/build/win32/vs11/gi-prebuild.vcxproj gobject-introspection-1.46.0/build/win32/vs11/gi-prebuild.vcxproj --- gobject-introspection-1.45.3/build/win32/vs11/gi-prebuild.vcxproj 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs11/gi-prebuild.vcxproj 2015-09-22 11:27:24.000000000 +0000 @@ -95,47 +95,19 @@ $(CopyConfigH) ..\..\..\config.h;%(Outputs) - - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - - - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - - - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) + + Generating Tools Scripts... + $(GenToolsScripts) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScripts) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScriptsX64) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScriptsX64) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) diff -Nru gobject-introspection-1.45.3/build/win32/vs11/girepository.vcxproj gobject-introspection-1.46.0/build/win32/vs11/girepository.vcxproj --- gobject-introspection-1.45.3/build/win32/vs11/girepository.vcxproj 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs11/girepository.vcxproj 2015-09-22 11:27:24.000000000 +0000 @@ -85,9 +85,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -111,9 +108,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -142,9 +136,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -171,9 +162,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll diff -Nru gobject-introspection-1.45.3/build/win32/vs11/README.txt gobject-introspection-1.46.0/build/win32/vs11/README.txt --- gobject-introspection-1.45.3/build/win32/vs11/README.txt 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs11/README.txt 2015-09-22 11:27:24.000000000 +0000 @@ -48,19 +48,15 @@ \vs11\\lib\. The libintl.h that is used for building GLib needs to be in -\vs11\\include, if not already done so - -You will also need a working GCC/MinGW compiler installation -in order to generate the .gir and .typelib files. One may be -obtained from the mingw or the mingw64 project. +\vs11\\include, if not already done so. A working pkg-config tool is also required-it may be obtained from http://www.gtk.org/download/win32.php [32-bit] http://www.gtk.org/download/win64.php [64-bit] *** Note! *** -Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH and -MinGW, the build of G-I is now a 2-step process: one with the Visual Studio Projects that +Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH, +the build of G-I is now a 2-step process: one with the Visual Studio Projects that will build the libraries, tools, Python Module and test DLLs (except for the everything test), and the other one with NMake Makefiles for building the introspection files. Please note that if one needs to change the installation location @@ -77,13 +73,6 @@ You need to use an x64/amd64 version of Python for x64 builds, and a Win32/x86 version of Python for Win32/x86 builds PKG_CONFIG_PATH: Location of the .pc (pkg-config) files, especially for the GLib .pc files. -MINGWDIR: Root installation folder for your Windows GCC (such as MinGW). For example, - if your gcc executable (gcc.exe) is in c:\mingw\bin, use "set MINGWDIR=c:\mingw" - You need to use an x64/amd64 version of gcc for x64 builds, and a Win32/x86 - version of gcc for Win32/x86 builds - -GCC is currently needed to as the GCC preprocessor is used to create the introspection dump source -file, which is then compiled with the Visual C++ compiler to produce the .gir files. Please see $(srcroot)\build\gi-introspection-msvc.mak for more details. Doing "nmake -f gi-introspection-msvc.mak (options omitted)" will build the various introspection files, diff -Nru gobject-introspection-1.45.3/build/win32/vs12/gi-extra-paths.props gobject-introspection-1.46.0/build/win32/vs12/gi-extra-paths.props --- gobject-introspection-1.45.3/build/win32/vs12/gi-extra-paths.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs12/gi-extra-paths.props 2015-09-22 11:27:24.000000000 +0000 @@ -7,7 +7,7 @@ c:\\python27 - c:\\python27.x64 + $(PythonDir).x64 <_PropertySheetDisplayName>giextrapathsprops diff -Nru gobject-introspection-1.45.3/build/win32/vs12/gi-gen-srcs.props gobject-introspection-1.46.0/build/win32/vs12/gi-gen-srcs.props --- gobject-introspection-1.45.3/build/win32/vs12/gi-gen-srcs.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs12/gi-gen-srcs.props 2015-09-22 11:27:24.000000000 +0000 @@ -1,17 +1,12 @@ - + copy ..\..\..\config.h.win32 ..\..\..\config.h - copy ..\..\..\tools\g-ir-scanner.in ..\..\..\tools\g-ir-scanner - copy ..\..\..\tools\g-ir-doc-tool.in ..\..\..\tools\g-ir-doc-tool - copy ..\..\..\tools\g-ir-annotation-tool.in ..\..\..\tools\g-ir-annotation-tool - -echo EXPORTS > $(DefDir)\girepository.def -cl -EP ..\..\..\girepository\girepository.symbols >> $(DefDir)\girepository.def - + $(PythonDir)\python ..\..\..\build\gen-win32-g-ir-tools.py + $(PythonDirX64)\python ..\..\..\build\gen-win32-g-ir-tools.py <_PropertySheetDisplayName>gigensrcsprops @@ -20,17 +15,11 @@ $(CopyConfigH) - - $(CopyGIRScanner) + + $(GenToolsScripts) - - $(CopyGIRDocTool) - - - $(CopyGIRAnnotationTool) - - - $(GenerateGIRDef) + + $(GenToolsScriptsX64) diff -Nru gobject-introspection-1.45.3/build/win32/vs12/gi-install.props gobject-introspection-1.46.0/build/win32/vs12/gi-install.props --- gobject-introspection-1.45.3/build/win32/vs12/gi-install.props 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs12/gi-install.props 2015-09-22 11:27:24.000000000 +0000 @@ -65,6 +65,7 @@ copy ..\..\..\giscanner\libtoolimporter.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\maintransformer.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\message.py $(CopyDir)\lib\gobject-introspection\giscanner +copy ..\..\..\giscanner\msvccompiler.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\shlibs.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\scannermain.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\sectionparser.py $(CopyDir)\lib\gobject-introspection\giscanner diff -Nru gobject-introspection-1.45.3/build/win32/vs12/gi-prebuild.vcxproj gobject-introspection-1.46.0/build/win32/vs12/gi-prebuild.vcxproj --- gobject-introspection-1.45.3/build/win32/vs12/gi-prebuild.vcxproj 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs12/gi-prebuild.vcxproj 2015-09-22 11:27:24.000000000 +0000 @@ -95,47 +95,19 @@ $(CopyConfigH) ..\..\..\config.h;%(Outputs) - - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - Copying g-ir-scanner from g-ir-scanner.in... - $(CopyGIRScanner) - ..\..\..\tools\g-ir-scanner;%(Outputs) - - - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - Copying g-ir-doc-tool from g-ir-doc-tool.in... - $(CopyGIRDocTool) - ..\..\..\tools\g-ir-doc-tool;%(Outputs) - - - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) - Copying g-ir-annotation-tool from g-ir-annotation-tool.in... - $(CopyGIRAnnotationTool) - ..\..\..\tools\g-ir-annotation-tool;%(Outputs) + + Generating Tools Scripts... + $(GenToolsScripts) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScripts) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScriptsX64) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) + Generating Tools Scripts... + $(GenToolsScriptsX64) + ..\..\..\tools\g-ir-scanner;..\..\..\tools\g-ir-doc-tool;..\..\..\tools\g-ir-annotation-tool;%(Outputs) diff -Nru gobject-introspection-1.45.3/build/win32/vs12/girepository.vcxproj gobject-introspection-1.46.0/build/win32/vs12/girepository.vcxproj --- gobject-introspection-1.45.3/build/win32/vs12/girepository.vcxproj 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs12/girepository.vcxproj 2015-09-22 11:27:24.000000000 +0000 @@ -85,9 +85,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -111,9 +108,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -142,9 +136,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll @@ -171,9 +162,6 @@ Level3 ProgramDatabase - - $(GenerateGIRDef) - libffi.lib;%(AdditionalDependencies) $(OutDir)$(LibGIDllPrefix)$(ProjectName)$(LibGIDllSuffix).dll diff -Nru gobject-introspection-1.45.3/build/win32/vs12/README.txt gobject-introspection-1.46.0/build/win32/vs12/README.txt --- gobject-introspection-1.45.3/build/win32/vs12/README.txt 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs12/README.txt 2015-09-22 11:27:24.000000000 +0000 @@ -48,19 +48,15 @@ \vs12\\lib\. The libintl.h that is used for building GLib needs to be in -\vs12\\include, if not already done so - -You will also need a working GCC/MinGW compiler installation -in order to generate the .gir and .typelib files. One may be -obtained from the mingw or the mingw64 project. +\vs12\\include, if not already done so. A working pkg-config tool is also required-it may be obtained from http://www.gtk.org/download/win32.php [32-bit] http://www.gtk.org/download/win64.php [64-bit] *** Note! *** -Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH and -MinGW, the build of G-I is now a 2-step process: one with the Visual Studio Projects that +Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH, +the build of G-I is now a 2-step process: one with the Visual Studio Projects that will build the libraries, tools, Python Module and test DLLs (except for the everything test), and the other one with NMake Makefiles for building the introspection files. Please note that if one needs to change the installation location @@ -77,13 +73,6 @@ You need to use an x64/amd64 version of Python for x64 builds, and a Win32/x86 version of Python for Win32/x86 builds PKG_CONFIG_PATH: Location of the .pc (pkg-config) files, especially for the GLib .pc files. -MINGWDIR: Root installation folder for your Windows GCC (such as MinGW). For example, - if your gcc executable (gcc.exe) is in c:\mingw\bin, use "set MINGWDIR=c:\mingw" - You need to use an x64/amd64 version of gcc for x64 builds, and a Win32/x86 - version of gcc for Win32/x86 builds - -GCC is currently needed to as the GCC preprocessor is used to create the introspection dump source -file, which is then compiled with the Visual C++ compiler to produce the .gir files. Please see $(srcroot)\build\gi-introspection-msvc.mak for more details. Doing "nmake -f gi-introspection-msvc.mak (options omitted)" will build the various introspection files, diff -Nru gobject-introspection-1.45.3/build/win32/vs9/gi-extra-paths.vsprops gobject-introspection-1.46.0/build/win32/vs9/gi-extra-paths.vsprops --- gobject-introspection-1.45.3/build/win32/vs9/gi-extra-paths.vsprops 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs9/gi-extra-paths.vsprops 2015-07-30 10:32:27.000000000 +0000 @@ -13,6 +13,6 @@ diff -Nru gobject-introspection-1.45.3/build/win32/vs9/gi-gen-srcs.vsprops gobject-introspection-1.46.0/build/win32/vs9/gi-gen-srcs.vsprops --- gobject-introspection-1.45.3/build/win32/vs9/gi-gen-srcs.vsprops 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs9/gi-gen-srcs.vsprops 2015-07-30 10:32:27.000000000 +0000 @@ -3,7 +3,7 @@ ProjectType="Visual C++" Version="8.00" Name="gigensrcsprops" - InheritedPropertySheets=".\gi-build-defines.vsprops" + InheritedPropertySheets=".\gi-extra-paths.vsprops" > - - diff -Nru gobject-introspection-1.45.3/build/win32/vs9/gi-install.vsprops gobject-introspection-1.46.0/build/win32/vs9/gi-install.vsprops --- gobject-introspection-1.45.3/build/win32/vs9/gi-install.vsprops 2015-07-03 20:31:22.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs9/gi-install.vsprops 2015-09-22 11:27:24.000000000 +0000 @@ -66,6 +66,7 @@ copy ..\..\..\giscanner\libtoolimporter.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\maintransformer.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\message.py $(CopyDir)\lib\gobject-introspection\giscanner +copy ..\..\..\giscanner\msvccompiler.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\shlibs.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\scannermain.py $(CopyDir)\lib\gobject-introspection\giscanner copy ..\..\..\giscanner\sectionparser.py $(CopyDir)\lib\gobject-introspection\giscanner diff -Nru gobject-introspection-1.45.3/build/win32/vs9/gi-prebuild.vcproj gobject-introspection-1.46.0/build/win32/vs9/gi-prebuild.vcproj --- gobject-introspection-1.45.3/build/win32/vs9/gi-prebuild.vcproj 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs9/gi-prebuild.vcproj 2015-07-30 10:32:27.000000000 +0000 @@ -94,105 +94,37 @@ /> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -Nru gobject-introspection-1.45.3/build/win32/vs9/README.txt gobject-introspection-1.46.0/build/win32/vs9/README.txt --- gobject-introspection-1.45.3/build/win32/vs9/README.txt 2014-02-07 16:24:37.000000000 +0000 +++ gobject-introspection-1.46.0/build/win32/vs9/README.txt 2015-07-30 10:32:27.000000000 +0000 @@ -50,17 +50,13 @@ The libintl.h that is used for building GLib needs to be in \vs9\\include, if not already done so -You will also need a working GCC/MinGW compiler installation -in order to generate the .gir and .typelib files. One may be -obtained from the mingw or the mingw64 project. - A working pkg-config tool is also required-it may be obtained from http://www.gtk.org/download/win32.php [32-bit] http://www.gtk.org/download/win64.php [64-bit] *** Note! *** -Please note that due to numerous possible configurations on Python, PKG_CONFIG_PATH and -MinGW, the build of G-I is now a 2-step process: one with the Visual Studio Projects that +Please note that due to numerous possible configurations on Python and PKG_CONFIG_PATH, +the build of G-I is now a 2-step process: one with the Visual Studio Projects that will build the libraries, tools, Python Module and test DLLs (except for the everything test), and the other one with NMake Makefiles for building the introspection files. Please note that if one needs to change the installation location @@ -77,13 +73,6 @@ You need to use an x64/amd64 version of Python for x64 builds, and a Win32/x86 version of Python for Win32/x86 builds PKG_CONFIG_PATH: Location of the .pc (pkg-config) files, especially for the GLib .pc files. -MINGWDIR: Root installation folder for your Windows GCC (such as MinGW). For example, - if your gcc executable (gcc.exe) is in c:\mingw\bin, use "set MINGWDIR=c:\mingw" - You need to use an x64/amd64 version of gcc for x64 builds, and a Win32/x86 - version of gcc for Win32/x86 builds - -GCC is currently needed to as the GCC preprocessor is used to create the introspection dump source -file, which is then compiled with the Visual C++ compiler to produce the .gir files. Please see $(srcroot)\build\gi-introspection-msvc.mak for more details. Doing "nmake -f gi-introspection-msvc.mak (options omitted)" will build the various introspection files, diff -Nru gobject-introspection-1.45.3/config.h.win32 gobject-introspection-1.46.0/config.h.win32 --- gobject-introspection-1.45.3/config.h.win32 2015-07-03 20:30:38.000000000 +0000 +++ gobject-introspection-1.46.0/config.h.win32 2015-09-22 11:24:42.000000000 +0000 @@ -96,7 +96,7 @@ #define PACKAGE_NAME "gobject-introspection" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "gojbect-introspection 1.45.3" +#define PACKAGE_STRING "gojbect-introspection 1.46.0" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "gobject-introspection" @@ -105,7 +105,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "1.45.3" +#define PACKAGE_VERSION "1.46.0" /* Define to the platform's shared library suffix */ #define SHLIB_SUFFIX ".dll" @@ -126,7 +126,7 @@ #define STDC_HEADERS 1 /* Version number of package */ -#define VERSION "1.45.3" +#define VERSION "1.46.0" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ diff -Nru gobject-introspection-1.45.3/configure gobject-introspection-1.46.0/configure --- gobject-introspection-1.45.3/configure 2015-07-03 20:30:31.000000000 +0000 +++ gobject-introspection-1.46.0/configure 2015-09-22 11:24:37.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for gobject-introspection 1.45.3. +# Generated by GNU Autoconf 2.69 for gobject-introspection 1.46.0. # # Report bugs to . # @@ -591,8 +591,8 @@ # Identity of this package. PACKAGE_NAME='gobject-introspection' PACKAGE_TARNAME='gobject-introspection' -PACKAGE_VERSION='1.45.3' -PACKAGE_STRING='gobject-introspection 1.45.3' +PACKAGE_VERSION='1.46.0' +PACKAGE_STRING='gobject-introspection 1.46.0' PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection' PACKAGE_URL='' @@ -1430,7 +1430,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures gobject-introspection 1.45.3 to adapt to many kinds of systems. +\`configure' configures gobject-introspection 1.46.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1501,7 +1501,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of gobject-introspection 1.45.3:";; + short | recursive ) echo "Configuration of gobject-introspection 1.46.0:";; esac cat <<\_ACEOF @@ -1655,7 +1655,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -gobject-introspection configure 1.45.3 +gobject-introspection configure 1.46.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2207,7 +2207,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by gobject-introspection $as_me 1.45.3, which was +It was created by gobject-introspection $as_me 1.46.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3075,7 +3075,7 @@ # Define the identity of the package. PACKAGE='gobject-introspection' - VERSION='1.45.3' + VERSION='1.46.0' cat >>confdefs.h <<_ACEOF @@ -3349,7 +3349,7 @@ # Used in docs/reference/version.xml -GI_VERSION=1.45.3 +GI_VERSION=1.46.0 # Check for Win32 @@ -15513,7 +15513,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gobject-introspection $as_me 1.45.3, which was +This file was extended by gobject-introspection $as_me 1.46.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -15579,7 +15579,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gobject-introspection config.status 1.45.3 +gobject-introspection config.status 1.46.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -Nru gobject-introspection-1.45.3/configure.ac gobject-introspection-1.46.0/configure.ac --- gobject-introspection-1.45.3/configure.ac 2015-07-03 20:29:28.000000000 +0000 +++ gobject-introspection-1.46.0/configure.ac 2015-09-22 11:24:07.000000000 +0000 @@ -3,8 +3,8 @@ dnl the gi version number m4_define(gi_major_version, 1) -m4_define(gi_minor_version, 45) -m4_define(gi_micro_version, 3) +m4_define(gi_minor_version, 46) +m4_define(gi_micro_version, 0) m4_define(gi_version, gi_major_version.gi_minor_version.gi_micro_version) AC_PREREQ([2.63]) diff -Nru gobject-introspection-1.45.3/debian/changelog gobject-introspection-1.46.0/debian/changelog --- gobject-introspection-1.45.3/debian/changelog 2015-07-22 08:33:37.000000000 +0000 +++ gobject-introspection-1.46.0/debian/changelog 2015-09-23 07:12:25.000000000 +0000 @@ -1,3 +1,15 @@ +gobject-introspection (1.46.0-0ubuntu1~wily0) wily; urgency=high + + * New upstream release + + -- Rico Tzschichholz Wed, 23 Sep 2015 09:12:25 +0200 + +gobject-introspection (1.45.4-0ubuntu1~wily1) wily; urgency=medium + + * New upstream release + + -- Rico Tzschichholz Thu, 03 Sep 2015 15:27:43 +0200 + gobject-introspection (1.45.3-0ubuntu1~wily1) wily; urgency=medium * New upstream release diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-common-types.html gobject-introspection-1.46.0/docs/reference/html/gi-common-types.html --- gobject-introspection-1.45.3/docs/reference/html/gi-common-types.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-common-types.html 2015-09-22 11:27:24.000000000 +0000 @@ -130,107 +130,107 @@ -

gboolean v_boolean;

+

gboolean v_boolean;

TODO

  -

gint8 v_int8;

+

gint8 v_int8;

TODO

  -

guint8 v_uint8;

+

guint8 v_uint8;

TODO

  -

gint16 v_int16;

+

gint16 v_int16;

TODO

  -

guint16 v_uint16;

+

guint16 v_uint16;

TODO

  -

gint32 v_int32;

+

gint32 v_int32;

TODO

  -

guint32 v_uint32;

+

guint32 v_uint32;

TODO

  -

gint64 v_int64;

+

gint64 v_int64;

TODO

  -

guint64 v_uint64;

+

guint64 v_uint64;

TODO

  -

gfloat v_float;

+

gfloat v_float;

TODO

  -

gdouble v_double;

+

gdouble v_double;

TODO

  -

gshort v_short;

+

gshort v_short;

TODO

  -

gushort v_ushort;

+

gushort v_ushort;

TODO

  -

gint v_int;

+

gint v_int;

TODO

  -

guint v_uint;

+

guint v_uint;

TODO

  -

glong v_long;

+

glong v_long;

TODO

  -

gulong v_ulong;

+

gulong v_ulong;

TODO

  -

gssize v_ssize;

+

gssize v_ssize;

TODO

  -

gsize v_size;

+

gsize v_size;

TODO

  -

gchar *v_string;

+

gchar *v_string;

TODO

  -

gpointer v_pointer;

+

gpointer v_pointer;

TODO

  @@ -344,7 +344,7 @@

GI_TYPE_TAG_GTYPE

-

a GType

+

a GType

  @@ -380,28 +380,28 @@

GI_TYPE_TAG_GLIST

-

a GList

+

a GList

 

GI_TYPE_TAG_GSLIST

-

a GSList

+

a GSList

 

GI_TYPE_TAG_GHASH

-

a GHashTable

+

a GHashTable

 

GI_TYPE_TAG_ERROR

-

a GError

+

a GError

  @@ -447,14 +447,14 @@

GI_ARRAY_TYPE_PTR_ARRAY

-

a GPtrArray array

+

a GPtrArray array

 

GI_ARRAY_TYPE_BYTE_ARRAY

-

a GByteArray array

+

a GByteArray array

  diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi.devhelp2 gobject-introspection-1.46.0/docs/reference/html/gi.devhelp2 --- gobject-introspection-1.45.3/docs/reference/html/gi.devhelp2 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi.devhelp2 2015-09-22 11:27:24.000000000 +0000 @@ -436,5 +436,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIArgInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIArgInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIArgInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIArgInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@ -gint +gint g_arg_info_get_closure () @@ -55,7 +55,7 @@ -gint +gint g_arg_info_get_destroy () @@ -103,7 +103,7 @@ -gboolean +gboolean g_arg_info_may_be_null () @@ -111,7 +111,7 @@ -gboolean +gboolean g_arg_info_is_caller_allocates () @@ -119,7 +119,7 @@ -gboolean +gboolean g_arg_info_is_optional () @@ -127,7 +127,7 @@ -gboolean +gboolean g_arg_info_is_return_value () @@ -135,7 +135,7 @@ -gboolean +gboolean g_arg_info_is_skip () @@ -209,7 +209,7 @@

g_arg_info_get_closure ()

-
gint
+
gint
 g_arg_info_get_closure (GIArgInfo *info);

Obtain the index of the user data argument. This is only valid for arguments which are callbacks.

@@ -236,9 +236,9 @@

g_arg_info_get_destroy ()

-
gint
+
gint
 g_arg_info_get_destroy (GIArgInfo *info);
-

Obtains the index of the GDestroyNotify argument. This is only valid +

Obtains the index of the GDestroyNotify argument. This is only valid for arguments which are callbacks.

Parameters

@@ -257,7 +257,7 @@

Returns

-

index of the GDestroyNotify argument or -1 if there is none

+

index of the GDestroyNotify argument or -1 if there is none


@@ -414,11 +414,11 @@

g_arg_info_may_be_null ()

-
gboolean
+
gboolean
 g_arg_info_may_be_null (GIArgInfo *info);
-

Obtain if the type of the argument includes the possibility of NULL. -For 'in' values this means that NULL is a valid value. For 'out' -values, this means that NULL may be returned.

+

Obtain if the type of the argument includes the possibility of NULL. +For 'in' values this means that NULL is a valid value. For 'out' +values, this means that NULL may be returned.

See also g_arg_info_is_optional().

Parameters

@@ -437,18 +437,18 @@

Returns

-

TRUE if the value may be NULL

+

TRUE if the value may be NULL


g_arg_info_is_caller_allocates ()

-
gboolean
+
gboolean
 g_arg_info_is_caller_allocates (GIArgInfo *info);

Obtain if the argument is a pointer to a struct or object that will receive an output of a function. The default assumption for GI_DIRECTION_OUT arguments which have allocation is that the -callee allocates; if this is TRUE, then the caller must allocate.

+callee allocates; if this is TRUE, then the caller must allocate.

Parameters

@@ -466,16 +466,16 @@

Returns

-

TRUE if caller is required to have allocated the argument

+

TRUE if caller is required to have allocated the argument


g_arg_info_is_optional ()

-
gboolean
+
gboolean
 g_arg_info_is_optional (GIArgInfo *info);

Obtain if the argument is optional. For 'out' arguments this means -that you can pass NULL in order to ignore the result.

+that you can pass NULL in order to ignore the result.

Parameters

@@ -493,13 +493,13 @@

Returns

-

TRUE if it is an optional argument

+

TRUE if it is an optional argument


g_arg_info_is_return_value ()

-
gboolean
+
gboolean
 g_arg_info_is_return_value (GIArgInfo *info);

Obtain if the argument is a return value. It can either be a parameter or a return value.

@@ -520,13 +520,13 @@

Returns

-

TRUE if it is a return value

+

TRUE if it is a return value


g_arg_info_is_skip ()

-
gboolean
+
gboolean
 g_arg_info_is_skip (GIArgInfo *info);

Obtain if an argument is only useful in C.

@@ -546,7 +546,7 @@

Returns

-

TRUE if argument is only useful in C.

+

TRUE if argument is only useful in C.

Since: 1.29.0

@@ -686,7 +686,7 @@

transfer the container (list, array, hash table) from the callee to the caller. The callee retains the ownership of the individual items in the container and the caller has to free up the container resources -(g_list_free()/g_hash_table_destroy() etc) of this transfer.

+(g_list_free()/g_hash_table_destroy() etc) of this transfer.

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIBaseInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIBaseInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIBaseInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIBaseInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -65,7 +65,7 @@ - - - - @@ -219,7 +219,7 @@ g_info_new (GIInfoType type, GIBaseInfo *container, GITypelib *typelib, - guint32 offset); + guint32 offset);

TODO

Parameters

@@ -315,7 +315,7 @@

g_base_info_equal ()

-
gboolean
+
gboolean
 g_base_info_equal (GIBaseInfo *info1,
                    GIBaseInfo *info2);

Compare two GIBaseInfo.

@@ -346,7 +346,7 @@

Returns

-

TRUE if and only if info1 +

TRUE if and only if info1 equals info2 .

@@ -409,7 +409,7 @@

g_base_info_get_namespace ()

-
const gchar *
+
const gchar *
 g_base_info_get_namespace (GIBaseInfo *info);

Obtain the namespace of info .

@@ -436,7 +436,7 @@

g_base_info_get_name ()

-
const gchar *
+
const gchar *
 g_base_info_get_name (GIBaseInfo *info);

Obtain the name of the info . What the name represents depends on @@ -461,15 +461,15 @@

Returns

the name of info -or NULL if it lacks a name.

+or NULL if it lacks a name.


g_base_info_get_attribute ()

-
const gchar *
+
const gchar *
 g_base_info_get_attribute (GIBaseInfo *info,
-                           const gchar *name);
+ const gchar *name);

Retrieve an arbitrary attribute associated with this node.

Parameters

@@ -495,20 +495,20 @@

Returns

-

The value of the attribute, or NULL if no such attribute exists

+

The value of the attribute, or NULL if no such attribute exists


g_base_info_iterate_attributes ()

-
gboolean
+
gboolean
 g_base_info_iterate_attributes (GIBaseInfo *info,
                                 GIAttributeIter *iterator,
                                 char **name,
                                 char **value);

Iterate over all attributes associated with this node. The iterator structure is typically stack allocated, and must have its first -member initialized to NULL. Attributes are arbitrary namespaced key–value +member initialized to NULL. Attributes are arbitrary namespaced key–value pairs which can be attached to almost any item. They are intended for use by software higher in the toolchain than bindings, and are distinct from normal GIR annotations.

@@ -541,7 +541,7 @@ char *value; while (g_base_info_iterate_attributes (info, &iter, &name, &value)) { - g_print ("attribute name: %s value: %s", name, value); + g_print ("attribute name: %s value: %s", name, value); } }
@@ -584,7 +584,7 @@

Returns

-

TRUE if there are more attributes

+

TRUE if there are more attributes


@@ -620,7 +620,7 @@

g_base_info_is_deprecated ()

-
gboolean
+
gboolean
 g_base_info_is_deprecated (GIBaseInfo *info);

Obtain whether the info is represents a metadata which is @@ -642,7 +642,7 @@

Returns

-

TRUE if deprecated

+

TRUE if deprecated

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GICallableInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GICallableInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GICallableInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GICallableInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@ -
 
-gboolean +gboolean g_base_info_equal () @@ -88,21 +88,21 @@
const gchar * +const gchar * g_base_info_get_namespace ()
const gchar * +const gchar * g_base_info_get_name ()
const gchar * +const gchar * g_base_info_get_attribute () @@ -110,7 +110,7 @@
-gboolean +gboolean g_base_info_iterate_attributes () @@ -126,7 +126,7 @@
-gboolean +gboolean g_base_info_is_deprecated () @@ -188,7 +188,7 @@
1
 2
 3
GIBaseInfo *button_info = g_irepository_find_by_name(NULL, "Gtk", "Button");
+        
GIBaseInfo *button_info = g_irepository_find_by_name(NULL, "Gtk", "Button");
 ... use button_info ...
 g_base_info_unref(button_info);
-gboolean +gboolean g_callable_info_can_throw_gerror () @@ -55,7 +55,7 @@
-gint +gint g_callable_info_get_n_args () @@ -78,7 +78,7 @@
const gchar * +const gchar * g_callable_info_get_return_attribute () @@ -94,7 +94,7 @@
-gboolean +gboolean g_callable_info_invoke () @@ -102,7 +102,7 @@
-gboolean +gboolean g_callable_info_is_method () @@ -110,7 +110,7 @@
-gboolean +gboolean g_callable_info_iterate_return_attributes () @@ -134,7 +134,7 @@
-gboolean +gboolean g_callable_info_may_return_null () @@ -142,7 +142,7 @@
-gboolean +gboolean g_callable_info_skip_return () @@ -208,7 +208,7 @@

g_callable_info_can_throw_gerror ()

-
gboolean
+
gboolean
 g_callable_info_can_throw_gerror (GICallableInfo *info);

TODO

@@ -228,14 +228,14 @@

Returns

-

TRUE if this GICallableInfo can throw a GError

+

TRUE if this GICallableInfo can throw a GError

Since: 1.34


g_callable_info_get_n_args ()

-
gint
+
gint
 g_callable_info_get_n_args (GICallableInfo *info);

Obtain the number of arguments (both IN and OUT) for this callable.

@@ -263,7 +263,7 @@

g_callable_info_get_arg ()

GIArgInfo *
 g_callable_info_get_arg (GICallableInfo *info,
-                         gint n);
+ gint n);

Obtain information about a particular argument of this callable.

Parameters

@@ -318,15 +318,15 @@

Returns

-

TRUE if the caller owns the return value, FALSE otherwise.

+

TRUE if the caller owns the return value, FALSE otherwise.


g_callable_info_get_return_attribute ()

-
const gchar *
+
const gchar *
 g_callable_info_get_return_attribute (GICallableInfo *info,
-                                      const gchar *name);
+ const gchar *name);

Retrieve an arbitrary attribute associated with the return value.

Parameters

@@ -352,7 +352,7 @@

Returns

-

The value of the attribute, or NULL if no such attribute exists

+

The value of the attribute, or NULL if no such attribute exists


@@ -386,17 +386,17 @@

g_callable_info_invoke ()

-
gboolean
+
gboolean
 g_callable_info_invoke (GICallableInfo *info,
-                        gpointer function,
+                        gpointer function,
                         const GIArgument *in_args,
                         int n_in_args,
                         const GIArgument *out_args,
                         int n_out_args,
                         GIArgument *return_value,
-                        gboolean is_method,
-                        gboolean throws,
-                        GError **error);
+ gboolean is_method, + gboolean throws, + GError **error);

TODO

Parameters

@@ -464,7 +464,7 @@

g_callable_info_is_method ()

-
gboolean
+
gboolean
 g_callable_info_is_method (GICallableInfo *info);

Determines if the callable info is a method. For GIVFuncInfos, GICallbackInfos, and GISignalInfos, @@ -491,15 +491,15 @@

Returns

-

TRUE if info -is a method, FALSE otherwise

+

TRUE if info +is a method, FALSE otherwise

Since: 1.34


g_callable_info_iterate_return_attributes ()

-
gboolean
+
gboolean
 g_callable_info_iterate_return_attributes
                                (GICallableInfo *info,
                                 GIAttributeIter *iterator,
@@ -507,7 +507,7 @@
                                 char **value);

Iterate over all attributes associated with the return value. The iterator structure is typically stack allocated, and must have its -first member initialized to NULL.

+first member initialized to NULL.

Both the name and value should be treated as constants @@ -548,7 +548,7 @@

Returns

-

TRUE if there are more attributes

+

TRUE if there are more attributes


@@ -556,7 +556,7 @@

g_callable_info_load_arg ()

void
 g_callable_info_load_arg (GICallableInfo *info,
-                          gint n,
+                          gint n,
                           GIArgInfo *arg);

Obtain information about a particular argument of this callable; this function is a variant of g_callable_info_get_arg() designed for stack @@ -632,9 +632,9 @@


g_callable_info_may_return_null ()

-
gboolean
+
gboolean
 g_callable_info_may_return_null (GICallableInfo *info);
-

See if a callable could return NULL.

+

See if a callable could return NULL.

Parameters

@@ -652,13 +652,13 @@

Returns

-

TRUE if callable could return NULL

+

TRUE if callable could return NULL


g_callable_info_skip_return ()

-
gboolean
+
gboolean
 g_callable_info_skip_return (GICallableInfo *info);

See if a callable's return value is only useful in C.

@@ -678,7 +678,7 @@

Returns

-

TRUE if return value is only useful in C.

+

TRUE if return value is only useful in C.

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIConstantInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIConstantInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIConstantInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIConstantInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -63,7 +63,7 @@ - -
-gint +gint g_constant_info_get_value () @@ -184,7 +184,7 @@

g_constant_info_get_value ()

-
gint
+
gint
 g_constant_info_get_value (GIConstantInfo *info,
                            GIArgument *value);

Obtain the value associated with the GIConstantInfo and store it in the diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIEnumInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIEnumInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIEnumInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIEnumInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -53,7 +53,7 @@

-gint +gint g_enum_info_get_n_values () @@ -69,7 +69,7 @@
-gint +gint g_enum_info_get_n_methods () @@ -92,7 +92,7 @@
const gchar * +const gchar * g_enum_info_get_error_domain () @@ -100,7 +100,7 @@
-gint64 +gint64 g_value_info_get_value () @@ -184,7 +184,7 @@

g_enum_info_get_n_values ()

-
gint
+
gint
 g_enum_info_get_n_values (GIEnumInfo *info);

Obtain the number of values this enumeration contains.

@@ -212,7 +212,7 @@

g_enum_info_get_value ()

GIValueInfo *
 g_enum_info_get_value (GIEnumInfo *info,
-                       gint n);
+ gint n);

Obtain a value for this enumeration.

Parameters

@@ -238,7 +238,7 @@

Returns

-

the enumeration value or NULL if type tag is wrong, +

the enumeration value or NULL if type tag is wrong, free the struct with g_base_info_unref() when done.

[transfer full]

@@ -246,7 +246,7 @@

g_enum_info_get_n_methods ()

-
gint
+
gint
 g_enum_info_get_n_methods (GIEnumInfo *info);

Obtain the number of methods that this enum type has.

@@ -275,7 +275,7 @@

g_enum_info_get_method ()

GIFunctionInfo *
 g_enum_info_get_method (GIEnumInfo *info,
-                        gint n);
+ gint n);

Obtain an enum type method at index n .

@@ -341,7 +341,7 @@

g_enum_info_get_error_domain ()

-
const gchar *
+
const gchar *
 g_enum_info_get_error_domain (GIEnumInfo *info);

Obtain the string form of the quark for the error domain associated with this enum, if any.

@@ -363,7 +363,7 @@

Returns

the string form of the error domain associated -with this enum, or NULL.

+with this enum, or NULL.

[transfer none]

Since: 1.29.17

@@ -371,7 +371,7 @@

g_value_info_get_value ()

-
gint64
+
gint64
 g_value_info_get_value (GIValueInfo *info);

Obtain the enumeration value of the GIValueInfo.

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIFieldInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIFieldInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIFieldInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIFieldInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@
-gboolean +gboolean g_field_info_get_field () @@ -55,7 +55,7 @@
-gboolean +gboolean g_field_info_set_field () @@ -71,7 +71,7 @@
-gint +gint g_field_info_get_offset () @@ -79,7 +79,7 @@
-gint +gint g_field_info_get_size () @@ -157,9 +157,9 @@

g_field_info_get_field ()

-
gboolean
+
gboolean
 g_field_info_get_field (GIFieldInfo *field_info,
-                        gpointer mem,
+                        gpointer mem,
                         GIArgument *value);

Reads a field identified by a GIFieldInfo from a C structure or union. This only handles fields of simple C types. It will fail @@ -195,15 +195,15 @@

Returns

-

TRUE if reading the field succeeded, otherwise FALSE

+

TRUE if reading the field succeeded, otherwise FALSE


g_field_info_set_field ()

-
gboolean
+
gboolean
 g_field_info_set_field (GIFieldInfo *field_info,
-                        gpointer mem,
+                        gpointer mem,
                         const GIArgument *value);

Writes a field identified by a GIFieldInfo to a C structure or union. This only handles fields of simple C types. It will fail @@ -241,7 +241,7 @@

Returns

-

TRUE if writing the field succeeded, otherwise FALSE

+

TRUE if writing the field succeeded, otherwise FALSE


@@ -274,7 +274,7 @@

g_field_info_get_offset ()

-
gint
+
gint
 g_field_info_get_offset (GIFieldInfo *info);

Obtain the offset in bits of the field member, this is relative to the beginning of the struct or union.

@@ -301,7 +301,7 @@

g_field_info_get_size ()

-
gint
+
gint
 g_field_info_get_size (GIFieldInfo *info);

Obtain the size in bits of the field member, this is how much space you need to allocate to store the field.

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIFunctionInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIFunctionInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIFunctionInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIFunctionInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -62,7 +62,7 @@
const gchar * +const gchar * g_function_info_get_symbol () @@ -78,7 +78,7 @@
-gboolean +gboolean g_function_info_invoke () @@ -90,7 +90,7 @@
-GQuark +GQuark g_invoke_error_quark () @@ -198,7 +198,7 @@

Obtain the property associated with this GIFunctionInfo. Only GIFunctionInfo with the flag GI_FUNCTION_IS_GETTER or GI_FUNCTION_IS_SETTER have a property set. For other cases, -NULL will be returned.

+NULL will be returned.

Parameters

@@ -216,7 +216,7 @@

Returns

-

the property or NULL if not set. Free it with +

the property or NULL if not set. Free it with g_base_info_unref() when done.

[transfer full]

@@ -224,11 +224,11 @@

g_function_info_get_symbol ()

-
const gchar *
+
const gchar *
 g_function_info_get_symbol (GIFunctionInfo *info);

Obtain the symbol of the function. The symbol is the name of the exported function, suitable to be used as an argument to -g_module_symbol().

+g_module_symbol().

Parameters

@@ -256,7 +256,7 @@ g_function_info_get_vfunc (GIFunctionInfo *info);

Obtain the virtual function associated with this GIFunctionInfo. Only GIFunctionInfo with the flag GI_FUNCTION_WRAPS_VFUNC has -a virtual function set. For other cases, NULL will be returned.

+a virtual function set. For other cases, NULL will be returned.

Parameters

@@ -274,7 +274,7 @@

Returns

-

the virtual function or NULL if not set. +

the virtual function or NULL if not set. Free it by calling g_base_info_unref() when done.

[transfer full]

@@ -282,21 +282,21 @@

g_function_info_invoke ()

-
gboolean
+
gboolean
 g_function_info_invoke (GIFunctionInfo *info,
                         const GIArgument *in_args,
                         int n_in_args,
                         const GIArgument *out_args,
                         int n_out_args,
                         GIArgument *return_value,
-                        GError **error);
+ GError **error);

Invokes the function described in info with the given arguments. Note that inout parameters must appear in both argument lists. This function uses dlsym() to obtain a pointer to the function, so the library or shared object containing the described function must either be linked to the caller, or must -have been g_module_symbol()ed before calling this function.

+have been g_module_symbol()ed before calling this function.

[skip]

Parameters

@@ -317,7 +317,7 @@
+can be NULL

@@ -331,7 +331,7 @@ +may be NULL

@@ -345,12 +345,12 @@ +NULL

- + @@ -358,7 +358,7 @@

Returns

-

TRUE if the function has been invoked, FALSE if an +

TRUE if the function has been invoked, FALSE if an error occurred.

@@ -372,7 +372,7 @@

g_invoke_error_quark ()

-
GQuark
+
GQuark
 g_invoke_error_quark (void);

TODO

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIInterfaceInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIInterfaceInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIInterfaceInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIInterfaceInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@
- -

an array of GIArguments, one for each in parameter of info . If there are no in parameter, in_args -can be NULL

 

an array of GIArguments, one for each out parameter of info . If there are no out parameters, out_args -may be NULL

 

return location for the return value of the function. If the function returns void, return_value may be -NULL

 

error

return location for detailed error information, or NULL

return location for detailed error information, or NULL

 
-gint +gint g_interface_info_get_n_prerequisites () @@ -63,7 +63,7 @@
-gint +gint g_interface_info_get_n_properties () @@ -79,7 +79,7 @@
-gint +gint g_interface_info_get_n_methods () @@ -103,7 +103,7 @@
-gint +gint g_interface_info_get_n_signals () @@ -127,7 +127,7 @@
-gint +gint g_interface_info_get_n_vfuncs () @@ -151,7 +151,7 @@
-gint +gint g_interface_info_get_n_constants () @@ -191,7 +191,7 @@

Description

-

GIInterfaceInfo represents a GInterface type.

+

GIInterfaceInfo represents a GInterface type.

A GInterface has methods, fields, properties, signals, interfaces, constants, virtual functions and prerequisites.

@@ -229,7 +229,7 @@

g_interface_info_get_n_prerequisites ()

-
gint
+
gint
 g_interface_info_get_n_prerequisites (GIInterfaceInfo *info);

Obtain the number of prerequisites for this interface type. A prerequisites is another interface that needs to be implemented for @@ -259,7 +259,7 @@

g_interface_info_get_prerequisite ()

GIBaseInfo *
 g_interface_info_get_prerequisite (GIInterfaceInfo *info,
-                                   gint n);
+ gint n);

Obtain an interface type prerequisites index n .

@@ -294,7 +294,7 @@

g_interface_info_get_n_properties ()

-
gint
+
gint
 g_interface_info_get_n_properties (GIInterfaceInfo *info);

Obtain the number of properties that this interface type has.

@@ -322,7 +322,7 @@

g_interface_info_get_property ()

GIPropertyInfo *
 g_interface_info_get_property (GIInterfaceInfo *info,
-                               gint n);
+ gint n);

Obtain an interface type property at index n .

@@ -357,7 +357,7 @@

g_interface_info_get_n_methods ()

-
gint
+
gint
 g_interface_info_get_n_methods (GIInterfaceInfo *info);

Obtain the number of methods that this interface type has.

@@ -385,7 +385,7 @@

g_interface_info_get_method ()

GIFunctionInfo *
 g_interface_info_get_method (GIInterfaceInfo *info,
-                             gint n);
+ gint n);

Obtain an interface type method at index n .

@@ -422,9 +422,9 @@

g_interface_info_find_method ()

GIFunctionInfo *
 g_interface_info_find_method (GIInterfaceInfo *info,
-                              const gchar *name);
+ const gchar *name);

Obtain a method of the interface type given a name -. NULL will be +. NULL will be returned if there's no method available with that name.

Parameters

@@ -450,7 +450,7 @@

Returns

-

the GIFunctionInfo or NULL if none found. +

the GIFunctionInfo or NULL if none found. Free the struct by calling g_base_info_unref() when done.

[transfer full]

@@ -458,7 +458,7 @@

g_interface_info_get_n_signals ()

-
gint
+
gint
 g_interface_info_get_n_signals (GIInterfaceInfo *info);

Obtain the number of signals that this interface type has.

@@ -486,7 +486,7 @@

g_interface_info_get_signal ()

GISignalInfo *
 g_interface_info_get_signal (GIInterfaceInfo *info,
-                             gint n);
+ gint n);

Obtain an interface type signal at index n .

@@ -523,7 +523,7 @@

g_interface_info_find_signal ()

GISignalInfo *
 g_interface_info_find_signal (GIInterfaceInfo *info,
-                              const gchar *name);
+ const gchar *name);

TODO

Parameters

@@ -552,7 +552,7 @@

Info for the signal with name name in info , or -NULL on failure.

+NULL on failure.

[transfer full]

Since: 1.34

@@ -560,7 +560,7 @@

g_interface_info_get_n_vfuncs ()

-
gint
+
gint
 g_interface_info_get_n_vfuncs (GIInterfaceInfo *info);

Obtain the number of virtual functions that this interface type has.

@@ -588,7 +588,7 @@

g_interface_info_get_vfunc ()

GIVFuncInfo *
 g_interface_info_get_vfunc (GIInterfaceInfo *info,
-                            gint n);
+ gint n);

Obtain an interface type virtual function at index n .

@@ -625,7 +625,7 @@

g_interface_info_find_vfunc ()

GIVFuncInfo *
 g_interface_info_find_vfunc (GIInterfaceInfo *info,
-                             const gchar *name);
+ const gchar *name);

Locate a virtual function slot with name name . See the documentation for g_object_info_find_vfunc() for more information on virtuals.

@@ -653,7 +653,7 @@

Returns

-

the GIVFuncInfo, or NULL. Free it with +

the GIVFuncInfo, or NULL. Free it with g_base_info_unref() when done.

[transfer full]

@@ -661,7 +661,7 @@

g_interface_info_get_n_constants ()

-
gint
+
gint
 g_interface_info_get_n_constants (GIInterfaceInfo *info);

Obtain the number of constants that this interface type has.

@@ -689,7 +689,7 @@

g_interface_info_get_constant ()

GIConstantInfo *
 g_interface_info_get_constant (GIInterfaceInfo *info,
-                               gint n);
+ gint n);

Obtain an interface type constant at index n .

@@ -726,7 +726,7 @@

g_interface_info_get_iface_struct ()

GIStructInfo *
 g_interface_info_get_iface_struct (GIInterfaceInfo *info);
-

Returns the layout C structure associated with this GInterface.

+

Returns the layout C structure associated with this GInterface.

Parameters

@@ -744,7 +744,7 @@

Returns

-

the GIStructInfo or NULL. Free it with +

the GIStructInfo or NULL. Free it with g_base_info_unref() when done.

[transfer full]

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIObjectInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIObjectInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIObjectInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIObjectInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@ - - - + @@ -1543,7 +1543,7 @@

GIObjectInfoGetValueFunction ()

void *
-(*GIObjectInfoGetValueFunction) (const GValue *value);
+(*GIObjectInfoGetValueFunction) (const GValue *value);

Extract an object instance out of value

[skip]

@@ -1557,7 +1557,7 @@
- +
-gboolean +gboolean g_object_info_get_abstract () @@ -55,7 +55,7 @@
-gboolean +gboolean g_object_info_get_fundamental () @@ -70,14 +70,14 @@
const gchar * +const gchar * g_object_info_get_type_name ()
const gchar * +const gchar * g_object_info_get_type_init () @@ -85,7 +85,7 @@
-gint +gint g_object_info_get_n_constants () @@ -101,7 +101,7 @@
-gint +gint g_object_info_get_n_fields () @@ -117,7 +117,7 @@
-gint +gint g_object_info_get_n_interfaces () @@ -133,7 +133,7 @@
-gint +gint g_object_info_get_n_methods () @@ -165,7 +165,7 @@
-gint +gint g_object_info_get_n_properties () @@ -181,7 +181,7 @@
-gint +gint g_object_info_get_n_signals () @@ -205,7 +205,7 @@
-gint +gint g_object_info_get_n_vfuncs () @@ -353,7 +353,7 @@

Description

-

GIObjectInfo represents a GObject. This doesn't represent a specific +

GIObjectInfo represents a GObject. This doesn't represent a specific instance of a GObject, instead this represent the object type (eg class).

A GObject has methods, fields, properties, signals, interfaces, constants and virtual functions.

@@ -392,7 +392,7 @@

g_object_info_get_abstract ()

-
gboolean
+
gboolean
 g_object_info_get_abstract (GIObjectInfo *info);

Obtain if the object type is an abstract type, eg if it cannot be instantiated

@@ -413,13 +413,13 @@

Returns

-

TRUE if the object type is abstract

+

TRUE if the object type is abstract


g_object_info_get_fundamental ()

-
gboolean
+
gboolean
 g_object_info_get_fundamental (GIObjectInfo *info);

Obtain if the object type is of a fundamental type which is not G_TYPE_OBJECT. This is mostly for supporting GstMiniObject.

@@ -440,7 +440,7 @@

Returns

-

TRUE if the object type is a fundamental type

+

TRUE if the object type is a fundamental type


@@ -474,7 +474,7 @@

g_object_info_get_type_name ()

-
const gchar *
+
const gchar *
 g_object_info_get_type_name (GIObjectInfo *info);

Obtain the name of the objects class/type.

@@ -500,7 +500,7 @@

g_object_info_get_type_init ()

-
const gchar *
+
const gchar *
 g_object_info_get_type_init (GIObjectInfo *info);

Obtain the function which when called will return the GType function for which this object type is registered.

@@ -527,7 +527,7 @@

g_object_info_get_n_constants ()

-
gint
+
gint
 g_object_info_get_n_constants (GIObjectInfo *info);

Obtain the number of constants that this object type has.

@@ -555,7 +555,7 @@

g_object_info_get_constant ()

GIConstantInfo *
 g_object_info_get_constant (GIObjectInfo *info,
-                            gint n);
+ gint n);

Obtain an object type constant at index n .

@@ -590,7 +590,7 @@

g_object_info_get_n_fields ()

-
gint
+
gint
 g_object_info_get_n_fields (GIObjectInfo *info);

Obtain the number of fields that this object type has.

@@ -618,7 +618,7 @@

g_object_info_get_field ()

GIFieldInfo *
 g_object_info_get_field (GIObjectInfo *info,
-                         gint n);
+ gint n);

Obtain an object type field at index n .

@@ -653,7 +653,7 @@

g_object_info_get_n_interfaces ()

-
gint
+
gint
 g_object_info_get_n_interfaces (GIObjectInfo *info);

Obtain the number of interfaces that this object type has.

@@ -681,7 +681,7 @@

g_object_info_get_interface ()

GIInterfaceInfo *
 g_object_info_get_interface (GIObjectInfo *info,
-                             gint n);
+ gint n);

Obtain an object type interface at index n .

@@ -716,7 +716,7 @@

g_object_info_get_n_methods ()

-
gint
+
gint
 g_object_info_get_n_methods (GIObjectInfo *info);

Obtain the number of methods that this object type has.

@@ -744,7 +744,7 @@

g_object_info_get_method ()

GIFunctionInfo *
 g_object_info_get_method (GIObjectInfo *info,
-                          gint n);
+ gint n);

Obtain an object type method at index n .

@@ -781,9 +781,9 @@

g_object_info_find_method ()

GIFunctionInfo *
 g_object_info_find_method (GIObjectInfo *info,
-                           const gchar *name);
+ const gchar *name);

Obtain a method of the object type given a name -. NULL will be +. NULL will be returned if there's no method available with that name.

Parameters

@@ -820,12 +820,12 @@
GIFunctionInfo *
 g_object_info_find_method_using_interfaces
                                (GIObjectInfo *info,
-                                const gchar *name,
+                                const gchar *name,
                                 GIObjectInfo **implementor);

Obtain a method of the object given a name , searching both the object info - and any interfaces it implements. NULL will be + and any interfaces it implements. NULL will be returned if there's no method available with that name.

Note that this function does *not* search parent classes; you will have to chain up if that's desired.

@@ -866,7 +866,7 @@

g_object_info_get_n_properties ()

-
gint
+
gint
 g_object_info_get_n_properties (GIObjectInfo *info);

Obtain the number of properties that this object type has.

@@ -894,7 +894,7 @@

g_object_info_get_property ()

GIPropertyInfo *
 g_object_info_get_property (GIObjectInfo *info,
-                            gint n);
+ gint n);

Obtain an object type property at index n .

@@ -929,7 +929,7 @@

g_object_info_get_n_signals ()

-
gint
+
gint
 g_object_info_get_n_signals (GIObjectInfo *info);

Obtain the number of signals that this object type has.

@@ -957,7 +957,7 @@

g_object_info_get_signal ()

GISignalInfo *
 g_object_info_get_signal (GIObjectInfo *info,
-                          gint n);
+ gint n);

Obtain an object type signal at index n .

@@ -994,7 +994,7 @@

g_object_info_find_signal ()

GISignalInfo *
 g_object_info_find_signal (GIObjectInfo *info,
-                           const gchar *name);
+ const gchar *name);

TODO

Parameters

@@ -1022,14 +1022,14 @@

Returns

Info for the signal with name name in info -, or NULL on failure.

+, or NULL on failure.

[transfer full]


g_object_info_get_n_vfuncs ()

-
gint
+
gint
 g_object_info_get_n_vfuncs (GIObjectInfo *info);

Obtain the number of virtual functions that this object type has.

@@ -1057,7 +1057,7 @@

g_object_info_get_vfunc ()

GIVFuncInfo *
 g_object_info_get_vfunc (GIObjectInfo *info,
-                         gint n);
+ gint n);

Obtain an object type virtual function at index n .

@@ -1094,12 +1094,12 @@

g_object_info_find_vfunc ()

GIVFuncInfo *
 g_object_info_find_vfunc (GIObjectInfo *info,
-                          const gchar *name);
+ const gchar *name);

Locate a virtual function slot with name name . Note that the namespace for virtuals is distinct from that of methods; there may or may not be a concrete method associated for a virtual. If there is one, it may -be retrieved using g_vfunc_info_get_invoker(), otherwise NULL will be +be retrieved using g_vfunc_info_get_invoker(), otherwise NULL will be returned. See the documentation for g_vfunc_info_get_invoker() for more information on invoking virtuals.

@@ -1127,7 +1127,7 @@

Returns

-

the GIVFuncInfo, or NULL. Free it with +

the GIVFuncInfo, or NULL. Free it with g_base_info_unref() when done.

[transfer full]

@@ -1138,7 +1138,7 @@
GIVFuncInfo *
 g_object_info_find_vfunc_using_interfaces
                                (GIObjectInfo *info,
-                                const gchar *name,
+                                const gchar *name,
                                 GIObjectInfo **implementor);

Locate a virtual function slot with name name , searching both the object @@ -1146,7 +1146,7 @@ and any interfaces it implements. Note that the namespace for virtuals is distinct from that of methods; there may or may not be a concrete method associated for a virtual. If there is one, it may be -retrieved using g_vfunc_info_get_invoker(), otherwise NULL will be +retrieved using g_vfunc_info_get_invoker(), otherwise NULL will be returned.

Note that this function does *not* search parent classes; you will have to chain up if that's desired.

@@ -1189,7 +1189,7 @@

g_object_info_get_class_struct ()

GIStructInfo *
 g_object_info_get_class_struct (GIObjectInfo *info);
-

Every GObject has two structures; an instance structure and a class +

Every GObject has two structures; an instance structure and a class structure. This function returns the metadata for the class structure.

Parameters

@@ -1208,7 +1208,7 @@

Returns

-

the GIStructInfo or NULL. Free with +

the GIStructInfo or NULL. Free with g_base_info_unref() when done.

[transfer full]

@@ -1239,7 +1239,7 @@

Returns

-

the symbol or NULL

+

the symbol or NULL


@@ -1270,7 +1270,7 @@

Returns

-

the function pointer or NULL

+

the function pointer or NULL


@@ -1299,7 +1299,7 @@

Returns

-

the symbol or NULL

+

the symbol or NULL


@@ -1330,7 +1330,7 @@

Returns

-

the function pointer or NULL

+

the function pointer or NULL


@@ -1360,7 +1360,7 @@

Returns

-

the symbol or NULL

+

the symbol or NULL


@@ -1391,7 +1391,7 @@

Returns

-

the function pointer or NULL

+

the function pointer or NULL


@@ -1421,7 +1421,7 @@

Returns

-

the symbol or NULL

+

the symbol or NULL


@@ -1452,7 +1452,7 @@

Returns

-

the function pointer or NULL

+

the function pointer or NULL


@@ -1510,7 +1510,7 @@

GIObjectInfoSetValueFunction ()

void
-(*GIObjectInfoSetValueFunction) (GValue *value,
+(*GIObjectInfoSetValueFunction) (GValue *value,
                                  void *object);

Update value and attach the object instance pointer object @@ -1527,7 +1527,7 @@

value

a GValue

a GValue

 

value

a GValue

a GValue

 
diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIPropertyInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIPropertyInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIPropertyInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIPropertyInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@
-GParamFlags +GParamFlags g_property_info_get_flags () @@ -123,9 +123,9 @@

g_property_info_get_flags ()

-
GParamFlags
+
GParamFlags
 g_property_info_get_flags (GIPropertyInfo *info);
-

Obtain the flags for this property info. See GParamFlags for +

Obtain the flags for this property info. See GParamFlags for more information about possible flag values.

Parameters

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIRegisteredTypeInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIRegisteredTypeInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIRegisteredTypeInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIRegisteredTypeInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -46,14 +46,14 @@
const gchar * +const gchar * g_registered_type_info_get_type_name ()
const gchar * +const gchar * g_registered_type_info_get_type_init () @@ -61,7 +61,7 @@
-GType +GType g_registered_type_info_get_g_type () @@ -131,10 +131,10 @@

g_registered_type_info_get_type_name ()

-
const gchar *
+
const gchar *
 g_registered_type_info_get_type_name (GIRegisteredTypeInfo *info);

Obtain the type name of the struct within the GObject type system. -This type can be passed to g_type_name() to get a GType.

+This type can be passed to g_type_name() to get a GType.

Parameters

@@ -158,7 +158,7 @@

g_registered_type_info_get_type_init ()

-
const gchar *
+
const gchar *
 g_registered_type_info_get_type_init (GIRegisteredTypeInfo *info);

Obtain the type init function for info . The type init function is the @@ -183,15 +183,15 @@

Returns

the symbol name of the type init function, suitable for -passing into g_module_symbol().

+passing into g_module_symbol().


g_registered_type_info_get_g_type ()

-
GType
+
GType
 g_registered_type_info_get_g_type (GIRegisteredTypeInfo *info);
-

Obtain the GType for this registered type or G_TYPE_NONE which a special meaning. +

Obtain the GType for this registered type or G_TYPE_NONE which a special meaning. It means that either there is no type information associated with this info or that the shared library which provides the type_init function for this @@ -214,7 +214,7 @@

Returns

-

the GType.

+

the GType.

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-girffi.html gobject-introspection-1.46.0/docs/reference/html/gi-girffi.html --- gobject-introspection-1.45.3/docs/reference/html/gi-girffi.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-girffi.html 2015-09-22 11:27:24.000000000 +0000 @@ -73,7 +73,7 @@ - + @@ -326,18 +326,18 @@

Returns

-

TRUE on success, FALSE otherwise with error +

TRUE on success, FALSE otherwise with error set.


g_function_invoker_new_for_address ()

-
gboolean
-g_function_invoker_new_for_address (gpointer addr,
+
gboolean
+g_function_invoker_new_for_address (gpointer addr,
                                     GICallableInfo *info,
                                     GIFunctionInvoker *invoker,
-                                    GError **error);
+ GError **error);

Initialize the caller-allocated invoker structure with a cache of information needed to invoke the C function corresponding to @@ -372,7 +372,7 @@

- + @@ -380,7 +380,7 @@

Returns

-

TRUE on success, FALSE otherwise with error +

TRUE on success, FALSE otherwise with error set.

@@ -416,7 +416,7 @@ g_callable_info_prepare_closure (GICallableInfo *callable_info, ffi_cif *cif, GIFFIClosureCallback callback, - gpointer user_data); + gpointer user_data);

Prepares a callback for ffi invocation.

Parameters

@@ -512,7 +512,7 @@
- + diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GISignalInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GISignalInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GISignalInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GISignalInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@
-gboolean +gboolean g_function_info_prep_invoker () @@ -81,7 +81,7 @@
-gboolean +gboolean g_function_invoker_new_for_address () @@ -185,7 +185,7 @@

gi_type_tag_get_ffi_type ()

ffi_type *
 gi_type_tag_get_ffi_type (GITypeTag type_tag,
-                          gboolean is_pointer);
+ gboolean is_pointer);

TODO

Parameters

@@ -285,10 +285,10 @@

g_function_info_prep_invoker ()

-
gboolean
+
gboolean
 g_function_info_prep_invoker (GIFunctionInfo *info,
                               GIFunctionInvoker *invoker,
-                              GError **error);
+ GError **error);

Initialize the caller-allocated invoker structure with a cache of information needed to invoke the C function corresponding to @@ -318,7 +318,7 @@

error

A GError

A GError

 

error

A GError

A GError

 
 

gpointer native_address;

gpointer native_address;

the native address

 
-GSignalFlags +GSignalFlags g_signal_info_get_flags () @@ -63,7 +63,7 @@
-gboolean +gboolean g_signal_info_true_stops_emit () @@ -128,9 +128,9 @@

g_signal_info_get_flags ()

-
GSignalFlags
+
GSignalFlags
 g_signal_info_get_flags (GISignalInfo *info);
-

Obtain the flags for this signal info. See GSignalFlags for +

Obtain the flags for this signal info. See GSignalFlags for more information about possible flag values.

Parameters

@@ -159,7 +159,7 @@ g_signal_info_get_class_closure (GISignalInfo *info);

Obtain the class closure for this signal if one is set. The class closure is a virtual function on the type that the signal belongs to. -If the signal lacks a closure NULL will be returned.

+If the signal lacks a closure NULL will be returned.

Parameters

@@ -177,14 +177,14 @@

Returns

-

the class closure or NULL.

+

the class closure or NULL.

[transfer full]


g_signal_info_true_stops_emit ()

-
gboolean
+
gboolean
 g_signal_info_true_stops_emit (GISignalInfo *info);

Obtain if the returning true in the signal handler will stop the emission of the signal.

@@ -205,7 +205,7 @@

Returns

-

TRUE if returning true stops the signal emission

+

TRUE if returning true stops the signal emission

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIStructInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIStructInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIStructInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIStructInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -47,7 +47,7 @@ - -
-gsize +gsize g_struct_info_get_alignment () @@ -55,7 +55,7 @@
-gsize +gsize g_struct_info_get_size () @@ -63,7 +63,7 @@
-gboolean +gboolean g_struct_info_is_gtype_struct () @@ -71,7 +71,7 @@
-gboolean +gboolean g_struct_info_is_foreign () @@ -79,7 +79,7 @@
-gint +gint g_struct_info_get_n_fields () @@ -95,7 +95,7 @@
-gint +gint g_struct_info_get_n_methods () @@ -172,7 +172,7 @@

g_struct_info_get_alignment ()

-
gsize
+
gsize
 g_struct_info_get_alignment (GIStructInfo *info);

Obtain the required alignment of the structure.

@@ -198,7 +198,7 @@

g_struct_info_get_size ()

-
gsize
+
gsize
 g_struct_info_get_size (GIStructInfo *info);

Obtain the total size of the structure.

@@ -224,10 +224,10 @@

g_struct_info_is_gtype_struct ()

-
gboolean
+
gboolean
 g_struct_info_is_gtype_struct (GIStructInfo *info);

Return true if this structure represents the "class structure" for some -GObject or GInterface. This function is mainly useful to hide this kind of structure +GObject or GInterface. This function is mainly useful to hide this kind of structure from generated public APIs.

Parameters

@@ -246,13 +246,13 @@

Returns

-

TRUE if this is a class struct, FALSE otherwise

+

TRUE if this is a class struct, FALSE otherwise


g_struct_info_is_foreign ()

-
gboolean
+
gboolean
 g_struct_info_is_foreign (GIStructInfo *info);

TODO

@@ -278,7 +278,7 @@

g_struct_info_get_n_fields ()

-
gint
+
gint
 g_struct_info_get_n_fields (GIStructInfo *info);

Obtain the number of fields this structure has.

@@ -306,7 +306,7 @@

g_struct_info_get_field ()

GIFieldInfo *
 g_struct_info_get_field (GIStructInfo *info,
-                         gint n);
+ gint n);

Obtain the type information for field with specified index.

Parameters

@@ -340,7 +340,7 @@

g_struct_info_get_n_methods ()

-
gint
+
gint
 g_struct_info_get_n_methods (GIStructInfo *info);

Obtain the number of methods this structure has.

@@ -368,7 +368,7 @@

g_struct_info_get_method ()

GIFunctionInfo *
 g_struct_info_get_method (GIStructInfo *info,
-                          gint n);
+ gint n);

Obtain the type information for method with specified index.

Parameters

@@ -404,7 +404,7 @@

g_struct_info_find_method ()

GIFunctionInfo *
 g_struct_info_find_method (GIStructInfo *info,
-                           const gchar *name);
+ const gchar *name);

Obtain the type information for method named name .

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GITypeInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GITypeInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GITypeInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GITypeInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -46,14 +46,14 @@
const gchar * +const gchar * g_type_tag_to_string ()
const gchar * +const gchar * g_info_type_to_string () @@ -61,7 +61,7 @@
-gboolean +gboolean g_type_info_is_pointer () @@ -93,7 +93,7 @@
-gint +gint g_type_info_get_array_length () @@ -101,7 +101,7 @@
-gint +gint g_type_info_get_array_fixed_size () @@ -109,7 +109,7 @@
-gboolean +gboolean g_type_info_is_zero_terminated () @@ -183,7 +183,7 @@

g_type_tag_to_string ()

-
const gchar *
+
const gchar *
 g_type_tag_to_string (GITypeTag type);

Obtain a string representation of type

@@ -210,7 +210,7 @@

g_info_type_to_string ()

-
const gchar *
+
const gchar *
 g_info_type_to_string (GIInfoType type);

Obtain a string representation of type

@@ -237,7 +237,7 @@

g_type_info_is_pointer ()

-
gboolean
+
gboolean
 g_type_info_is_pointer (GITypeInfo *info);

Obtain if the type is passed as a reference.

@@ -257,7 +257,7 @@

Returns

-

TRUE if it is a pointer

+

TRUE if it is a pointer


@@ -292,7 +292,7 @@

g_type_info_get_param_type ()

GITypeInfo *
 g_type_info_get_param_type (GITypeInfo *info,
-                            gint n);
+ gint n);

Obtain the parameter type n .

@@ -349,7 +349,7 @@

Returns

-

the GIBaseInfo, or NULL. Free it with +

the GIBaseInfo, or NULL. Free it with g_base_info_unref() when done.

[transfer full]

@@ -357,7 +357,7 @@

g_type_info_get_array_length ()

-
gint
+
gint
 g_type_info_get_array_length (GITypeInfo *info);

Obtain the array length of the type. The type tag must be a GI_TYPE_TAG_ARRAY or -1 will returned.

@@ -384,7 +384,7 @@

g_type_info_get_array_fixed_size ()

-
gint
+
gint
 g_type_info_get_array_fixed_size (GITypeInfo *info);

Obtain the fixed array size of the type. The type tag must be a GI_TYPE_TAG_ARRAY or -1 will returned.

@@ -411,10 +411,10 @@

g_type_info_is_zero_terminated ()

-
gboolean
+
gboolean
 g_type_info_is_zero_terminated (GITypeInfo *info);
-

Obtain if the last element of the array is NULL. The type tag must be a -GI_TYPE_TAG_ARRAY or FALSE will returned.

+

Obtain if the last element of the array is NULL. The type tag must be a +GI_TYPE_TAG_ARRAY or FALSE will returned.

Parameters

@@ -432,7 +432,7 @@

Returns

-

TRUE if zero terminated

+

TRUE if zero terminated


diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-gitypelib.html gobject-introspection-1.46.0/docs/reference/html/gi-gitypelib.html --- gobject-introspection-1.45.3/docs/reference/html/gi-gitypelib.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-gitypelib.html 2015-09-22 11:27:24.000000000 +0000 @@ -73,14 +73,14 @@ - - + @@ -155,9 +155,9 @@

g_typelib_new_from_const_memory ()

GITypelib *
-g_typelib_new_from_const_memory (const guint8 *memory,
-                                 gsize len,
-                                 GError **error);
+g_typelib_new_from_const_memory (const guint8 *memory, + gsize len, + GError **error);

Creates a new GITypelib from a memory location.

[skip]

@@ -181,7 +181,7 @@
- + @@ -196,9 +196,9 @@

g_typelib_new_from_mapped_file ()

GITypelib *
-g_typelib_new_from_mapped_file (GMappedFile *mfile,
-                                GError **error);
-

Creates a new GITypelib from a GMappedFile.

+g_typelib_new_from_mapped_file (GMappedFile *mfile, + GError **error); +

Creates a new GITypelib from a GMappedFile.

[skip]

Parameters

@@ -211,12 +211,12 @@
- + - + @@ -252,10 +252,10 @@

g_typelib_symbol ()

-
gboolean
+
gboolean
 g_typelib_symbol (GITypelib *typelib,
-                  const gchar *symbol_name,
-                  gpointer *symbol);
+ const gchar *symbol_name, + gpointer *symbol);

Loads a symbol from GITypelib.

Parameters

@@ -286,13 +286,13 @@

Returns

-

TRUE on success

+

TRUE on success


g_typelib_get_namespace ()

-
const gchar *
+
const gchar *
 g_typelib_get_namespace (GITypelib *typelib);

TODO

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GITypelib.html gobject-introspection-1.46.0/docs/reference/html/gi-GITypelib.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GITypelib.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GITypelib.html 2015-09-22 11:27:24.000000000 +0000 @@ -83,7 +83,7 @@
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -995,12 +995,12 @@ - + - + @@ -1033,27 +1033,27 @@ - + - + - + - + - + @@ -1085,27 +1085,27 @@ - + - + - + - + - + @@ -1144,7 +1144,7 @@ - + @@ -1192,17 +1192,17 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1332,49 +1332,49 @@ - + - + - + - + - + - - + - + - + @@ -1412,22 +1412,22 @@ - + - + - + - + @@ -1472,82 +1472,82 @@ - + - + - + +g_object_set().

- + +g_object_get().

- + - + - + - + - + - + - + - + - + - + @@ -1578,27 +1578,27 @@ - + - + - + - + - + @@ -1629,27 +1629,27 @@ - + - + - + - + - + @@ -1671,12 +1671,12 @@ - + - + @@ -1714,47 +1714,47 @@ - + - + - + - + +NULL value.

- + - + - + - + @@ -1797,27 +1797,27 @@ - + - + - + - + - + @@ -1855,32 +1855,32 @@ - + - + - + - + - + - + @@ -1910,27 +1910,27 @@ - + - + - + - + - + @@ -1968,44 +1968,44 @@ - + - + - + - + - + - + - + - + @@ -2043,37 +2043,37 @@ - + - + - + - + - + - + - + @@ -2120,79 +2120,79 @@ - + - + - + - + - + - + - + - + - - + + - - + + - + - + - + - + - + @@ -2238,77 +2238,77 @@ - + - + - + - + - + - + - + - - + + - - + + - + - + - + - + - + - + @@ -2358,59 +2358,59 @@ - + - + - + - + - + - + - - + + - - + + - + - + - - + + @@ -2453,44 +2453,44 @@ - + - + - + - + - + - + - + - + - + - + @@ -2552,78 +2552,78 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2665,75 +2665,75 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2790,135 +2790,135 @@ - + - + - + - + - + - + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2966,89 +2966,89 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -3085,22 +3085,22 @@ - + - + - + - + @@ -3111,17 +3111,17 @@ - + - + - + @@ -3149,19 +3149,19 @@ - + - + - + diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIUnionInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIUnionInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIUnionInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIUnionInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -41,7 +41,7 @@ - + - + @@ -278,21 +278,21 @@

Returns

-

address to a function or NULL if an error happened

+

address to a function or NULL if an error happened


g_vfunc_info_invoke ()

-
gboolean
+
gboolean
 g_vfunc_info_invoke (GIVFuncInfo *info,
-                     GType implementor,
+                     GType implementor,
                      const GIArgument *in_args,
                      int n_in_args,
                      const GIArgument *out_args,
                      int n_out_args,
                      GIArgument *return_value,
-                     GError **error);
+ GError **error);

Invokes the function described in info with the given arguments. Note that inout parameters must appear in both @@ -314,7 +314,7 @@

- + @@ -322,7 +322,7 @@ +can be NULL

@@ -336,7 +336,7 @@ +may be NULL

@@ -350,12 +350,12 @@ +NULL

- + @@ -363,7 +363,7 @@

Returns

-

TRUE if the function has been invoked, FALSE if an +

TRUE if the function has been invoked, FALSE if an error occurred.

@@ -413,7 +413,7 @@ diff -Nru gobject-introspection-1.45.3/docs/reference/html/GIRepository.html gobject-introspection-1.46.0/docs/reference/html/GIRepository.html --- gobject-introspection-1.45.3/docs/reference/html/GIRepository.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/GIRepository.html 2015-09-22 11:27:24.000000000 +0000 @@ -50,7 +50,7 @@ - - - - - @@ -343,10 +343,10 @@

g_irepository_get_immediate_dependencies ()

-
gchar **
+
gchar **
 g_irepository_get_immediate_dependencies
                                (GIRepository *repository,
-                                const gchar *namespace_);
+ const gchar *namespace_);

Return an array of the immediate versioned dependencies for namespace_ . Returned strings are of the form namespace-version.

@@ -367,7 +367,7 @@
- @@ -390,7 +390,7 @@

g_irepository_get_loaded_namespaces ()

-
gchar **
+
gchar **
 g_irepository_get_loaded_namespaces (GIRepository *repository);

Return the list of currently loaded namespaces.

@@ -403,7 +403,7 @@
- @@ -418,9 +418,9 @@

g_irepository_get_n_infos ()

-
gint
+
gint
 g_irepository_get_n_infos (GIRepository *repository,
-                           const gchar *namespace_);
+ const gchar *namespace_);

This function returns the number of metadata entries in given namespace namespace_ . The namespace must have @@ -436,7 +436,7 @@

- @@ -458,8 +458,8 @@

g_irepository_get_info ()

GIBaseInfo *
 g_irepository_get_info (GIRepository *repository,
-                        const gchar *namespace_,
-                        gint index);
+ const gchar *namespace_, + gint index);

This function returns a particular metadata entry in the given namespace namespace_ . The namespace must have @@ -477,7 +477,7 @@

- @@ -503,7 +503,7 @@

g_irepository_get_option_group ()

-
GOptionGroup *
+
GOptionGroup *
 g_irepository_get_option_group (void);

Obtain the option group for girepository, it's used by the dumper and for programs that wants to provide @@ -518,9 +518,9 @@


g_irepository_enumerate_versions ()

-
GList *
+
GList *
 g_irepository_enumerate_versions (GIRepository *repository,
-                                  const gchar *namespace_);
+ const gchar *namespace_);

Obtain an unordered list of versions (either currently loaded or available) for namespace_ in this repository @@ -536,7 +536,7 @@

- @@ -616,14 +616,14 @@

g_irepository_get_search_path ()

-
GSList *
+
GSList *
 g_irepository_get_search_path (void);

Returns the current search path GIRepository will use when loading typelib files. The list is internal to GIRespository and should not be freed, nor should its string elements.

Returns

-

GSList of strings.

+

GSList of strings.

[element-type filename][transfer none]

@@ -634,7 +634,7 @@ g_irepository_load_typelib (GIRepository *repository, GITypelib *typelib, GIRepositoryLoadFlags flags, - GError **error); + GError **error);

TODO

Parameters

@@ -647,7 +647,7 @@
- @@ -673,9 +673,9 @@

g_irepository_get_typelib_path ()

-
const gchar *
+
const gchar *
 g_irepository_get_typelib_path (GIRepository *repository,
-                                const gchar *namespace_);
+ const gchar *namespace_);

If namespace namespace_ is loaded, return the full path to the .typelib file it was loaded from. If the typelib for @@ -693,7 +693,7 @@

- @@ -707,16 +707,16 @@

Returns

-

Filesystem path (or $lt;builtin$gt;) if successful, NULL if namespace is not loaded

+

Filesystem path (or $lt;builtin$gt;) if successful, NULL if namespace is not loaded


g_irepository_is_registered ()

-
gboolean
+
gboolean
 g_irepository_is_registered (GIRepository *repository,
-                             const gchar *namespace_,
-                             const gchar *version);
+ const gchar *namespace_, + const gchar *version);

Check whether a particular namespace (and optionally, a specific version thereof) is currently loaded. This function is likely to only be useful in unusual circumstances; in order to act upon @@ -734,7 +734,7 @@

- @@ -745,7 +745,7 @@ - + @@ -753,7 +753,7 @@

Returns

-

TRUE if namespace-version is loaded, FALSE otherwise

+

TRUE if namespace-version is loaded, FALSE otherwise


@@ -761,10 +761,10 @@

g_irepository_require ()

GITypelib *
 g_irepository_require (GIRepository *repository,
-                       const gchar *namespace_,
-                       const gchar *version,
+                       const gchar *namespace_,
+                       const gchar *version,
                        GIRepositoryLoadFlags flags,
-                       GError **error);
+ GError **error);

Force the namespace namespace_ to be loaded if it isn't already. If namespace_ @@ -785,7 +785,7 @@

- @@ -796,7 +796,7 @@ - + @@ -806,7 +806,7 @@ - + @@ -814,7 +814,7 @@

Returns

-

a pointer to the GITypelib if successful, NULL otherwise.

+

a pointer to the GITypelib if successful, NULL otherwise.

[transfer none]

@@ -823,11 +823,11 @@

g_irepository_require_private ()

GITypelib *
 g_irepository_require_private (GIRepository *repository,
-                               const gchar *typelib_dir,
-                               const gchar *namespace_,
-                               const gchar *version,
+                               const gchar *typelib_dir,
+                               const gchar *namespace_,
+                               const gchar *version,
                                GIRepositoryLoadFlags flags,
-                               GError **error);
+ GError **error);

Force the namespace namespace_ to be loaded if it isn't already. If namespace_ @@ -848,7 +848,7 @@

- @@ -864,7 +864,7 @@ - + @@ -874,7 +874,7 @@ - + @@ -882,19 +882,19 @@

Returns

-

a pointer to the GITypelib if successful, NULL otherwise.

+

a pointer to the GITypelib if successful, NULL otherwise.

[transfer none]


g_irepository_get_c_prefix ()

-
const gchar *
+
const gchar *
 g_irepository_get_c_prefix (GIRepository *repository,
-                            const gchar *namespace_);
+ const gchar *namespace_);

This function returns the "C prefix", or the C level namespace associated with the given introspection namespace. Each C symbol -starts with this prefix, as well each GType in the library.

+starts with this prefix, as well each GType in the library.

Note: The namespace must have already been loaded using a function such as g_irepository_require() before calling this function.

@@ -908,7 +908,7 @@
- @@ -922,20 +922,20 @@

Returns

-

C namespace prefix, or NULL if none associated

+

C namespace prefix, or NULL if none associated


g_irepository_get_shared_library ()

-
const gchar *
+
const gchar *
 g_irepository_get_shared_library (GIRepository *repository,
-                                  const gchar *namespace_);
+ const gchar *namespace_);

This function returns a comma-separated list of paths to the shared C libraries associated with the given namespace namespace_ . There may be no shared library path associated, in which case this -function will return NULL.

+function will return NULL.

Note: The namespace must have already been loaded using a function such as g_irepository_require() before calling this function.

@@ -949,7 +949,7 @@
- @@ -964,15 +964,15 @@

Returns

Comma-separated list of paths to shared libraries, -or NULL if none are associated

+or NULL if none are associated


g_irepository_get_version ()

-
const gchar *
+
const gchar *
 g_irepository_get_version (GIRepository *repository,
-                           const gchar *namespace_);
+ const gchar *namespace_);

This function returns the loaded version associated with the given namespace namespace_ .

@@ -989,7 +989,7 @@
- @@ -1011,8 +1011,8 @@

g_irepository_find_by_gtype ()

GIBaseInfo *
 g_irepository_find_by_gtype (GIRepository *repository,
-                             GType gtype);
-

Searches all loaded namespaces for a particular GType. Note that + GType gtype); +

Searches all loaded namespaces for a particular GType. Note that in order to locate the metadata, the namespace corresponding to the type must first have been loaded. There is currently no mechanism for determining the namespace which corresponds to an @@ -1029,7 +1029,7 @@

- @@ -1044,7 +1044,7 @@

Returns

GIBaseInfo representing metadata about type -, or NULL.

+, or NULL.

[transfer full]

@@ -1053,8 +1053,8 @@

g_irepository_find_by_error_domain ()

GIEnumInfo *
 g_irepository_find_by_error_domain (GIRepository *repository,
-                                    GQuark domain);
-

Searches for the enum type corresponding to the given GError + GQuark domain); +

Searches for the enum type corresponding to the given GError domain. Before calling this function for a particular namespace, you must call g_irepository_require() once to load the namespace, or otherwise ensure the namespace has already been loaded.

@@ -1069,13 +1069,13 @@ - - + @@ -1085,7 +1085,7 @@

Returns

GIEnumInfo representing metadata about domain 's -enum type, or NULL.

+enum type, or NULL.

[transfer full]

Since: 1.29.17

@@ -1095,8 +1095,8 @@

g_irepository_find_by_name ()

GIBaseInfo *
 g_irepository_find_by_name (GIRepository *repository,
-                            const gchar *namespace_,
-                            const gchar *name);
+ const gchar *namespace_, + const gchar *name);

Searches for a particular entry in a namespace. Before calling this function for a particular namespace, you must call g_irepository_require() once to load the namespace, or otherwise @@ -1112,7 +1112,7 @@

- @@ -1132,16 +1132,16 @@

Returns

GIBaseInfo representing metadata about name -, or NULL.

+, or NULL.

[transfer full]


g_irepository_dump ()

-
gboolean
+
gboolean
 g_irepository_dump (const char *arg,
-                    GError **error);
+ GError **error);

Argument specified is a comma-separated pair of filenames; i.e. of the form "input.txt,output.xml". The input file should be a UTF-8 Unix-line-ending text file, with each line containing either @@ -1166,7 +1166,7 @@

- + @@ -1174,19 +1174,19 @@

Returns

-

TRUE on success, FALSE on error

+

TRUE on success, FALSE on error


gi_cclosure_marshal_generic ()

void
-gi_cclosure_marshal_generic (GClosure *closure,
-                             GValue *return_gvalue,
-                             guint n_param_values,
-                             const GValue *param_values,
-                             gpointer invocation_hint,
-                             gpointer marshal_data);
+gi_cclosure_marshal_generic (GClosure *closure, + GValue *return_gvalue, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data);

TODO

Parameters

@@ -1237,7 +1237,7 @@
#define G_IREPOSITORY_ERROR (g_irepository_error_quark ())
 

Error domain for GIRepository. Errors in this domain will be from the -GIRepositoryError enumeration. See GError for more information on +GIRepositoryError enumeration. See GError for more information on error domains.

@@ -1274,7 +1274,7 @@

enum GIRepositoryError

-

An error code used with G_IREPOSITORY_ERROR in a GError returned +

An error code used with G_IREPOSITORY_ERROR in a GError returned from a GIRepository routine.

Members

diff -Nru gobject-introspection-1.45.3/docs/reference/html/index.html gobject-introspection-1.46.0/docs/reference/html/index.html --- gobject-introspection-1.45.3/docs/reference/html/index.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/index.html 2015-09-22 11:27:24.000000000 +0000 @@ -15,7 +15,7 @@
-gboolean +gboolean g_typelib_symbol ()
const gchar * +const gchar * g_typelib_get_namespace () @@ -111,12 +111,12 @@

g_typelib_new_from_memory ()

GITypelib *
-g_typelib_new_from_memory (guint8 *memory,
-                           gsize len,
-                           GError **error);
+g_typelib_new_from_memory (guint8 *memory, + gsize len, + GError **error);

Creates a new GITypelib from a memory location. The memory block pointed to by typelib - will be automatically g_free()d when the + will be automatically g_free()d when the repository is destroyed.

[skip]

@@ -140,7 +140,7 @@

error

a GError

a GError

 

error

A GError

A GError

 

mfile

a GMappedFile, that will be free'd when the repository is destroyed

a GMappedFile, that will be free'd when the repository is destroyed

 

error

a GError

a GError

 
-gboolean +gboolean g_typelib_matches_gtype_name_prefix () @@ -109,7 +109,7 @@
-GQuark +GQuark g_typelib_error_quark () @@ -117,7 +117,7 @@
-gboolean +gboolean g_typelib_validate () @@ -305,7 +305,7 @@

g_typelib_get_dir_entry ()

DirEntry *
 g_typelib_get_dir_entry (GITypelib *typelib,
-                         guint16 index);
+ guint16 index);

TODO

Parameters

@@ -373,7 +373,7 @@

g_typelib_get_dir_entry_by_gtype_name ()

DirEntry *
 g_typelib_get_dir_entry_by_gtype_name (GITypelib *typelib,
-                                       const gchar *gtype_name);
+ const gchar *gtype_name);

TODO

Parameters

@@ -408,7 +408,7 @@
DirEntry *
 g_typelib_get_dir_entry_by_error_domain
                                (GITypelib *typelib,
-                                GQuark error_domain);
+ GQuark error_domain);

TODO

Parameters

@@ -440,9 +440,9 @@

g_typelib_matches_gtype_name_prefix ()

-
gboolean
+
gboolean
 g_typelib_matches_gtype_name_prefix (GITypelib *typelib,
-                                     const gchar *gtype_name);
+ const gchar *gtype_name);

TODO

Parameters

@@ -520,7 +520,7 @@

g_typelib_error_quark ()

-
GQuark
+
GQuark
 g_typelib_error_quark (void);

TODO

@@ -531,9 +531,9 @@

g_typelib_validate ()

-
gboolean
+
gboolean
 g_typelib_validate (GITypelib *typelib,
-                    GError **error);
+ GError **error);

TODO

Parameters

@@ -733,18 +733,18 @@

gchar magic[16];

gchar magic[16];

See G_IR_MAGIC.

 

guint8 major_version;

guint8 major_version;

The major version number of the typelib format. Major version number changes indicate incompatible changes to the tyeplib format.

 

guint8 minor_version;

guint8 minor_version;

The minor version number of the typelib format. Minor version number changes indicate compatible changes and should still allow the typelib to be parsed by a parser designed for the same major_version @@ -752,38 +752,38 @@

 

guint16 reserved;

guint16 reserved;

Reserved for future use.

 

guint16 n_entries;

guint16 n_entries;

The number of entries in the directory.

 

guint16 n_local_entries;

guint16 n_local_entries;

The number of entries referring to blobs in this typelib. The local entries must occur before the unresolved entries.

 

guint32 directory;

guint32 directory;

Offset of the directory in the typelib.

 

guint32 n_attributes;

guint32 n_attributes;

Number of attribute blocks

 

guint32 attributes;

guint32 attributes;

Offset of the list of attributes in the typelib.

 

guint32 dependencies;

guint32 dependencies;

Offset of a single string, which is the list of immediate dependencies, separated by the '|' character. The dependencies are required in order to avoid having programs consuming a typelib check for @@ -791,130 +791,130 @@

 

guint32 size;

guint32 size;

The size in bytes of the typelib.

 

guint32 namespace;

guint32 namespace;

Offset of the namespace string in the typelib.

 

guint32 nsversion;

guint32 nsversion;

Offset of the namespace version string in the typelib.

 

guint32 shared_library;

guint32 shared_library;

This field is the set of shared libraries associated with the typelib. The entries are separated by the '|' (pipe) character.

 

guint32 c_prefix;

guint32 c_prefix;

The prefix for the function names of the library

 

guint16 entry_blob_size;

guint16 entry_blob_size;

The sizes of fixed-size blobs. Recording this information here allows to write parser which continue to work if the format is extended by adding new fields to the end of the fixed-size blobs.

 

guint16 function_blob_size;

guint16 function_blob_size;

See entry_blob_size .

 

guint16 callback_blob_size;

guint16 callback_blob_size;

See entry_blob_size .

 

guint16 signal_blob_size;

guint16 signal_blob_size;

See entry_blob_size .

 

guint16 vfunc_blob_size;

guint16 vfunc_blob_size;

See entry_blob_size .

 

guint16 arg_blob_size;

guint16 arg_blob_size;

See entry_blob_size .

 

guint16 property_blob_size;

guint16 property_blob_size;

See entry_blob_size .

 

guint16 field_blob_size;

guint16 field_blob_size;

See entry_blob_size .

 

guint16 value_blob_size;

guint16 value_blob_size;

See entry_blob_size .

 

guint16 attribute_blob_size;

guint16 attribute_blob_size;

See entry_blob_size .

 

guint16 constant_blob_size;

guint16 constant_blob_size;

See entry_blob_size .

 

guint16 error_domain_blob_size;

guint16 error_domain_blob_size;

See entry_blob_size .

 

guint16 signature_blob_size;

guint16 signature_blob_size;

See entry_blob_size .

 

guint16 enum_blob_size;

guint16 enum_blob_size;

See entry_blob_size .

 

guint16 struct_blob_size;

guint16 struct_blob_size;

See entry_blob_size .

 

guint16 object_blob_size;

guint16 object_blob_size;

See entry_blob_size .

 

guint16 interface_blob_size;

guint16 interface_blob_size;

For variable-size blobs, the size of the struct up to the first flexible array member. Recording this information here allows to write parser which continue to work if the format is extended by @@ -923,18 +923,18 @@

 

guint16 union_blob_size;

guint16 union_blob_size;

See entry_blob_size .

 

guint32 sections;

guint32 sections;

Offset of section blob array

 

guint16 padding[6];

guint16 padding[6];

TODO

 

guint32 id;

guint32 id;

A SectionType

 

guint32 offset;

guint32 offset;

Integer offset for this section

 

guint16 blob_type;

guint16 blob_type;

A GTypelibBlobType

 

guint16 local : 1;

guint16 local : 1;

Whether this entry refers to a blob in this typelib.

 

guint16 reserved :15;

guint16 reserved :15;

Reserved for future use.

 

guint32 name;

guint32 name;

The name of the entry.

 

guint32 offset;

guint32 offset;

If is_local is set, this is the offset of the blob in the typelib. Otherwise, it is the offset of the namespace in which the blob has to be looked up by name.

guint reserved : 8;

guint reserved : 8;

Reserved for future use.

 

guint reserved2 :16;

guint reserved2 :16;

Reserved for future use.

 

guint pointer : 1;

guint pointer : 1;

TODO

 

guint reserved3 : 2;

guint reserved3 : 2;

Reserved for future use.

 

guint tag : 5;

guint tag : 5;

A GITypeTag

 
 

guint32 offset;

guint32 offset;

Offset relative to header->types that points to a TypeBlob. Unlike other offsets, this is in words (ie 32bit units) rather than bytes.

guint32 name;

guint32 name;

A suggested name for the parameter.

 

guint in : 1;

guint in : 1;

The parameter is an input to the function

 

guint out : 1;

guint out : 1;

The parameter is used to return an output of the function. Parameters can be both in and out. Out parameters implicitly add another level of indirection to the parameter type. Ie if the type is uint32 in an out @@ -1210,13 +1210,13 @@

 

guint caller_allocates : 1;

guint caller_allocates : 1;

The parameter is a pointer to a struct or object that will receive an output of the function.

 

guint nullable : 1;

guint nullable : 1;

Only meaningful for types which are passed as pointers. For an in parameter, indicates if it is ok to pass NULL in. Gor an out parameter, indicates whether it may return NULL. Note that NULL is a @@ -1225,20 +1225,20 @@

 

guint optional : 1;

guint optional : 1;

For an out parameter, indicates that NULL may be passed in if the value is not needed.

 

guint transfer_ownership : 1;

guint transfer_ownership : 1;

For an in parameter, indicates that the function takes over ownership of the parameter value. For an out parameter, it indicates that the caller is responsible for freeing the return value.

 

guint transfer_container_ownership : 1;

guint transfer_container_ownership : 1;

For container types, indicates that the ownership of the container, but not of its contents is transferred. This is typically the case for out parameters returning lists of @@ -1246,7 +1246,7 @@

 

guint return_value : 1;

guint return_value : 1;

The parameter should be considered the return value of the function. Only out parameters can be marked as return value, and there can be at most one per function call. If an out parameter is marked as @@ -1255,36 +1255,36 @@

 

guint scope : 3;

guint scope : 3;

A GIScopeType. If the parameter is of a callback type, this denotes the scope of the user_data and the callback function pointer itself (for languages that emit code at run-time).

 

guint skip : 1;

guint skip : 1;

Indicates that the parameter is only useful in C and should be skipped.

 

guint reserved :20;

guint reserved :20;

Reserved for future use.

 

gint8 closure;

gint8 closure;

Index of the closure (user_data) parameter associated with the callback, or -1.

 

gint8 destroy;

gint8 destroy;

Index of the destroy notfication callback parameter associated with the callback, or -1.

 

guint16 padding;

guint16 padding;

TODO

 
 

guint16 may_return_null : 1;

guint16 may_return_null : 1;

Only relevant for pointer types. Indicates whether the caller must expect NULL as a return value.

 

guint16 caller_owns_return_value : 1;

guint16 caller_owns_return_value : 1;

If set, the caller is responsible for freeing the return value if it is no longer needed.

 

guint16 caller_owns_return_container : 1;

guint16 caller_owns_return_container : 1;

This flag is only relevant if the return type is a container type. If the flag is set, the caller is resonsible for freeing the container, but not its contents.

 

guint16 skip_return : 1;

guint16 skip_return : 1;

Indicates that the return value is only useful in C and should be skipped.

 

guint16 instance_transfer_ownership : 1;

guint16 instance_transfer_ownership : 1;

When calling, the function assumes ownership of the instance parameter.

 

guint16 throws : 1;

Denotes the signature takes an additional GError argument beyond +

guint16 throws : 1;

Denotes the signature takes an additional GError argument beyond the annotated arguments.

 

guint16 reserved :10;

guint16 reserved :10;

Reserved for future use.

 

guint16 n_arguments;

guint16 n_arguments;

The number of arguments that this function expects, also the length of the array of ArgBlobs.

 

guint16 blob_type;

guint16 blob_type;

A GTypelibBlobType

 

guint16 deprecated : 1;

guint16 deprecated : 1;

Whether the blob is deprecated.

 

guint16 reserved :15;

guint16 reserved :15;

Reserved for future use.

 

guint32 name;

guint32 name;

The name of the blob.

 

guint16 blob_type;

guint16 blob_type;

BLOB_TYPE_FUNCTION

 

guint16 deprecated : 1;

guint16 deprecated : 1;

The function is deprecated.

 

guint16 setter : 1;

guint16 setter : 1;

The function is a setter for a property. Language bindings may prefer to not bind individual setters and rely on the generic -g_object_set().

 

guint16 getter : 1;

guint16 getter : 1;

The function is a getter for a property. Language bindings may prefer to not bind individual getters and rely on the generic -g_object_get().

 

guint16 constructor : 1;

guint16 constructor : 1;

The function acts as a constructor for the object it is contained in.

 

guint16 wraps_vfunc : 1;

guint16 wraps_vfunc : 1;

The function is a simple wrapper for a virtual function.

 

guint16 throws : 1;

guint16 throws : 1;

This is now additionally stored in the SignatureBlob.

[deprecated]

guint16 index :10;

guint16 index :10;

Index of the property that this function is a setter or getter of in the array of properties of the containing interface, or index of the virtual function that this function wraps.

 

guint32 name;

guint32 name;

TODO

 

guint32 symbol;

guint32 symbol;

The symbol which can be used to obtain the function pointer with dlsym().

 

guint32 signature;

guint32 signature;

Offset of the SignatureBlob describing the parameter types and the return value type.

 

guint16 is_static : 1;

guint16 is_static : 1;

The function is a "static method"; in other words it's a pure function whose name is conceptually scoped to the object.

 

guint16 reserved : 15;

guint16 reserved : 15;

Reserved for future use.

 

guint16 reserved2 : 16;

guint16 reserved2 : 16;

Reserved for future use.

 

guint16 blob_type;

guint16 blob_type;

TODO

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 reserved :15;

guint16 reserved :15;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 signature;

guint32 signature;

Offset of the SignatureBlob describing the parameter types and the return value type.

 

guint8 pointer :1;

guint8 pointer :1;

Whether this type represents an indirection

 

guint8 reserved :2;

guint8 reserved :2;

Reserved for future use.

 

guint8 tag :5;

guint8 tag :5;

A GITypeTag

 

guint8 reserved2;

guint8 reserved2;

Reserved for future use.

 

guint16 interface;

guint16 interface;

Index of the directory entry for the interface.

 

guint16 length;

guint16 length;

TODO

 

guint16 size;

guint16 size;

TODO

 

guint16 pointer :1;

guint16 pointer :1;

TODO

 

guint16 reserved :2;

guint16 reserved :2;

Reserved for future use.

 

guint16 tag :5;

guint16 tag :5;

TODO

 

guint16 zero_terminated :1;

guint16 zero_terminated :1;

Indicates that the array must be terminated by a suitable -NULL value.

 

guint16 has_length :1;

guint16 has_length :1;

Indicates that length points to a parameter specifying the length of the array. If both has_length and zero_terminated are set, the convention is to pass -1 for the length if the array is zero-terminated.

 

guint16 has_size :1;

guint16 has_size :1;

Indicates that size is the fixed size of the array.

 

guint16 array_type :2;

guint16 array_type :2;

Indicates whether this is a C array, GArray, GPtrArray, or GByteArray. If something other than a C array, the length and element size are implicit in the structure.

 

guint16 reserved2 :3;

guint16 reserved2 :3;

Reserved for future use.

 

guint8 pointer :1;

guint8 pointer :1;

TODO

 

guint8 reserved :2;

guint8 reserved :2;

Reserved for future use.

 

guint8 tag :5;

guint8 tag :5;

TODO

 

guint8 reserved2;

guint8 reserved2;

Reserved for future use.

 

guint16 n_types;

guint16 n_types;

The number of parameter types to follow.

 

guint8 pointer :1;

guint8 pointer :1;

TODO

 

guint8 reserved :2;

guint8 reserved :2;

TODO

 

guint8 tag :5;

guint8 tag :5;

TODO

 

guint8 reserved2;

guint8 reserved2;

TODO

 

guint16 n_domains;

guint16 n_domains;

TODO: must be 0

 

guint16 domains[];

guint16 domains[];

TODO

 

guint32 deprecated : 1;

guint32 deprecated : 1;

Whether this value is deprecated

 

guint32 unsigned_value : 1;

guint32 unsigned_value : 1;

if set, value is a 32-bit unsigned integer cast to gint32

 

guint32 reserved :30;

guint32 reserved :30;

Reserved for future use.

 

guint32 name;

guint32 name;

Name of blob

 

gint32 value;

gint32 value;

The numerical value

 

guint32 name;

guint32 name;

The name of the field.

 

guint8 readable :1;

guint8 readable :1;

TODO

 

guint8 writable :1;

guint8 writable :1;

How the field may be accessed.

 

guint8 has_embedded_type :1;

guint8 has_embedded_type :1;

An anonymous type follows the FieldBlob.

 

guint8 reserved :5;

guint8 reserved :5;

Reserved for future use.

 

guint8 bits;

guint8 bits;

If this field is part of a bitfield, the number of bits which it uses, otherwise 0.

 

guint16 struct_offset;

guint16 struct_offset;

The offset of the field in the struct. The value 0xFFFF indicates that the struct offset is unknown.

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint16 blob_type;

guint16 blob_type;

TODO

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 unregistered : 1;

guint16 unregistered : 1;

TODO

 

guint16 reserved :14;

guint16 reserved :14;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 gtype_name;

guint32 gtype_name;

The name under which the type is registered with GType.

 

guint32 gtype_init;

guint32 gtype_init;

The symbol name of the get_type() function which registers the type.

 

guint16 blob_type;

guint16 blob_type;

BLOB_TYPE_STRUCT

 

guint16 deprecated : 1;

guint16 deprecated : 1;

Whether this structure is deprecated

 

guint16 unregistered : 1;

guint16 unregistered : 1;

If this is set, the type is not registered with GType.

 

guint16 is_gtype_struct : 1;

guint16 is_gtype_struct : 1;

Whether this structure is the class or interface layout for a GObject

 

guint16 alignment : 6;

guint16 alignment : 6;

The byte boundary that the struct is aligned to in memory

 

guint16 foreign : 1;

guint16 foreign : 1;

If the type is foreign, eg if it's expected to be overridden by a native language binding instead of relying of introspected bindings.

 

guint16 reserved : 6;

guint16 reserved : 6;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 gtype_name;

String name of the associated GType

guint32 gtype_name;

String name of the associated GType

 

guint32 gtype_init;

String naming the symbol which gets the runtime GType

guint32 gtype_init;

String naming the symbol which gets the runtime GType

 

guint32 size;

guint32 size;

The size of the struct in bytes.

 

guint16 n_fields;

guint16 n_fields;

TODO

 

guint16 n_methods;

guint16 n_methods;

TODO

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint32 reserved3;

guint32 reserved3;

Reserved for future use.

 

guint16 blob_type;

guint16 blob_type;

TODO

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 unregistered : 1;

guint16 unregistered : 1;

If this is set, the type is not registered with GType.

 

guint16 discriminated : 1;

guint16 discriminated : 1;

Is set if the union is discriminated

 

guint16 alignment : 6;

guint16 alignment : 6;

The byte boundary that the union is aligned to in memory

 

guint16 reserved : 7;

guint16 reserved : 7;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 gtype_name;

String name of the associated GType

guint32 gtype_name;

String name of the associated GType

 

guint32 gtype_init;

String naming the symbol which gets the runtime GType

guint32 gtype_init;

String naming the symbol which gets the runtime GType

 

guint32 size;

guint32 size;

TODO

 

guint16 n_fields;

guint16 n_fields;

Length of the arrays

 

guint16 n_functions;

guint16 n_functions;

TODO

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint32 reserved3;

guint32 reserved3;

Reserved for future use.

 

gint32 discriminator_offset;

gint32 discriminator_offset;

Offset from the beginning of the union where the discriminator of a discriminated union is located. The value 0xFFFF indicates that the discriminator offset is unknown.

guint16 blob_type;

guint16 blob_type;

TODO

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 unregistered : 1;

guint16 unregistered : 1;

If this is set, the type is not registered with GType.

 

guint16 storage_type : 5;

guint16 storage_type : 5;

The tag of the type used for the enum in the C ABI (will be a signed or unsigned integral type)

 

guint16 reserved : 9;

guint16 reserved : 9;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 gtype_name;

String name of the associated GType

guint32 gtype_name;

String name of the associated GType

 

guint32 gtype_init;

String naming the symbol which gets the runtime GType

guint32 gtype_init;

String naming the symbol which gets the runtime GType

 

guint16 n_values;

guint16 n_values;

The length of the values array.

 

guint16 n_methods;

guint16 n_methods;

The length of the methods array.

 

guint32 error_domain;

String naming the GError domain this enum is associated with

guint32 error_domain;

String naming the GError domain this enum is associated with

 

guint32 name;

guint32 name;

The name of the property.

 

guint32 deprecated : 1;

guint32 deprecated : 1;

TODO

 

guint32 readable : 1;

guint32 readable : 1;

TODO

 

guint32 writable : 1;

guint32 writable : 1;

TODO

 

guint32 construct : 1;

guint32 construct : 1;

TODO

 

guint32 construct_only : 1;

guint32 construct_only : 1;

The ParamFlags used when registering the property.

 

guint32 transfer_ownership : 1;

guint32 transfer_ownership : 1;

When writing, the type containing the property takes ownership of the value. When reading, the returned value needs to be released by the caller.

 

guint32 transfer_container_ownership : 1;

guint32 transfer_container_ownership : 1;

For container types indicates that the ownership of the container, but not of its contents, is transferred. This is typically the case when reading lists of statically allocated @@ -2498,12 +2498,12 @@

 

guint32 reserved :25;

guint32 reserved :25;

Reserved for future use.

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 run_first : 1;

guint16 run_first : 1;

TODO

 

guint16 run_last : 1;

guint16 run_last : 1;

TODO

 

guint16 run_cleanup : 1;

guint16 run_cleanup : 1;

TODO

 

guint16 no_recurse : 1;

guint16 no_recurse : 1;

TODO

 

guint16 detailed : 1;

guint16 detailed : 1;

TODO

 

guint16 action : 1;

guint16 action : 1;

TODO

 

guint16 no_hooks : 1;

guint16 no_hooks : 1;

The flags used when registering the signal.

 

guint16 has_class_closure : 1;

guint16 has_class_closure : 1;

Set if the signal has a class closure.

 

guint16 true_stops_emit : 1;

guint16 true_stops_emit : 1;

Whether the signal has true-stops-emit semantics

 

guint16 reserved : 6;

guint16 reserved : 6;

Reserved for future use.

 

guint16 class_closure;

guint16 class_closure;

The index of the class closure in the list of virtual functions of the object or interface on which the signal is defined.

 

guint32 name;

guint32 name;

The name of the signal.

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint32 signature;

guint32 signature;

Offset of the SignatureBlob describing the parameter types and the return value type.

 

guint32 name;

guint32 name;

The name of the virtual function.

 

guint16 must_chain_up : 1;

guint16 must_chain_up : 1;

If set, every implementation of this virtual function must chain up to the implementation of the parent class.

 

guint16 must_be_implemented : 1;

guint16 must_be_implemented : 1;

If set, every derived class must override this virtual function.

 

guint16 must_not_be_implemented : 1;

guint16 must_not_be_implemented : 1;

If set, derived class must not override this virtual function.

 

guint16 class_closure : 1;

guint16 class_closure : 1;

Set if this virtual function is the class closure of a signal.

 

guint16 throws : 1;

guint16 throws : 1;

This is now additionally stored in the SignatureBlob.

[deprecated]

guint16 reserved :11;

guint16 reserved :11;

Reserved for future use.

 

guint16 signal;

guint16 signal;

The index of the signal in the list of signals of the object or interface to which this virtual function belongs.

 

guint16 struct_offset;

guint16 struct_offset;

The offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown.

 

guint16 invoker : 10;

guint16 invoker : 10;

If a method invoker for this virtual exists, this is the offset in the class structure of the method. If no method is known, this value will be 0x3ff.

 

guint16 reserved2 : 6;

guint16 reserved2 : 6;

Reserved for future use.

 

guint32 reserved3;

guint32 reserved3;

Reserved for future use.

 

guint32 signature;

guint32 signature;

Offset of the SignatureBlob describing the parameter types and the return value type.

 

guint16 blob_type;

guint16 blob_type;

BLOB_TYPE_OBJECT

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 abstract : 1;

guint16 abstract : 1;

TODO

 

guint16 fundamental : 1;

guint16 fundamental : 1;

this object is not a GObject derived type, instead it's an additional fundamental type.

 

guint16 reserved :13;

guint16 reserved :13;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 gtype_name;

String name of the associated GType

guint32 gtype_name;

String name of the associated GType

 

guint32 gtype_init;

String naming the symbol which gets the runtime GType

guint32 gtype_init;

String naming the symbol which gets the runtime GType

 

guint16 parent;

guint16 parent;

The directory index of the parent type. This is only set for objects. If an object does not have a parent, it is zero.

 

guint16 gtype_struct;

guint16 gtype_struct;

TODO

 

guint16 n_interfaces;

guint16 n_interfaces;

TODO

 

guint16 n_fields;

guint16 n_fields;

TODO

 

guint16 n_properties;

guint16 n_properties;

TODO

 

guint16 n_methods;

guint16 n_methods;

TODO

 

guint16 n_signals;

guint16 n_signals;

TODO

 

guint16 n_vfuncs;

guint16 n_vfuncs;

TODO

 

guint16 n_constants;

guint16 n_constants;

The lengths of the arrays.Up to 16bits of padding may be inserted between the arrays to ensure that they start on a 32bit boundary.

 

guint16 reserved2;

guint16 reserved2;

Reserved for future use.

 

guint32 ref_func;

guint32 ref_func;

String pointing to a function which can be called to increase the reference count for an instance of this object type.

 

guint32 unref_func;

guint32 unref_func;

String pointing to a function which can be called to decrease the reference count for an instance of this object type.

 

guint32 set_value_func;

guint32 set_value_func;

String pointing to a function which can be called to convert a pointer of this object to a GValue

 

guint32 get_value_func;

guint32 get_value_func;

String pointing to a function which can be called to convert extract a pointer to this object from a GValue

 

guint32 reserved3;

guint32 reserved3;

Reserved for future use.

 

guint32 reserved4;

guint32 reserved4;

Reserved for future use.

 

guint16 interfaces[];

guint16 interfaces[];

An array of indices of directory entries for the implemented interfaces.

 

guint16 blob_type;

guint16 blob_type;

TODO

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 reserved :15;

guint16 reserved :15;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 

guint32 gtype_name;

guint32 gtype_name;

TODO

 

guint32 gtype_init;

guint32 gtype_init;

TODO

 

guint16 gtype_struct;

guint16 gtype_struct;

Name of the interface "class" C structure

 

guint16 n_prerequisites;

guint16 n_prerequisites;

Number of prerequisites

 

guint16 n_properties;

guint16 n_properties;

Number of properties

 

guint16 n_methods;

guint16 n_methods;

Number of methods

 

guint16 n_signals;

guint16 n_signals;

Number of signals

 

guint16 n_vfuncs;

guint16 n_vfuncs;

Number of virtual functions

 

guint16 n_constants;

guint16 n_constants;

The lengths of the arrays. Up to 16bits of padding may be inserted between the arrays to ensure that they start on a 32bit boundary.

 

guint16 padding;

guint16 padding;

TODO

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint32 reserved3;

guint32 reserved3;

Reserved for future use.

 

guint16 prerequisites[];

guint16 prerequisites[];

An array of indices of directory entries for required interfaces.

 

guint16 blob_type;

guint16 blob_type;

TODO

 

guint16 deprecated : 1;

guint16 deprecated : 1;

TODO

 

guint16 reserved :15;

guint16 reserved :15;

Reserved for future use.

 

guint32 name;

guint32 name;

TODO

 
 

guint32 size;

guint32 size;

The size of the value in bytes.

 

guint32 offset;

guint32 offset;

The offset of the value in the typelib.

 

guint32 reserved2;

guint32 reserved2;

Reserved for future use.

 

guint32 offset;

guint32 offset;

The offset of the typelib entry to which this attribute refers. Attributes are kept sorted by offset, so that the attributes of an entry can be found by a binary search.

 

guint32 name;

guint32 name;

The name of the attribute, a string.

 

guint32 value;

guint32 value;

The value of the attribute (also a string)

 
-gint +gint g_union_info_get_n_fields () @@ -57,7 +57,7 @@
-gint +gint g_union_info_get_n_methods () @@ -73,7 +73,7 @@
-gboolean +gboolean g_union_info_is_discriminated () @@ -81,7 +81,7 @@
-gint +gint g_union_info_get_discriminator_offset () @@ -113,7 +113,7 @@
-gsize +gsize g_union_info_get_size () @@ -121,7 +121,7 @@
-gsize +gsize g_union_info_get_alignment () @@ -162,7 +162,7 @@

Functions

g_union_info_get_n_fields ()

-
gint
+
gint
 g_union_info_get_n_fields (GIUnionInfo *info);

Obtain the number of fields this union has.

@@ -190,7 +190,7 @@

g_union_info_get_field ()

GIFieldInfo *
 g_union_info_get_field (GIUnionInfo *info,
-                        gint n);
+ gint n);

Obtain the type information for field with specified index.

Parameters

@@ -224,7 +224,7 @@

g_union_info_get_n_methods ()

-
gint
+
gint
 g_union_info_get_n_methods (GIUnionInfo *info);

Obtain the number of methods this union has.

@@ -252,7 +252,7 @@

g_union_info_get_method ()

GIFunctionInfo *
 g_union_info_get_method (GIUnionInfo *info,
-                         gint n);
+ gint n);

Obtain the type information for method with specified index.

Parameters

@@ -286,7 +286,7 @@

g_union_info_is_discriminated ()

-
gboolean
+
gboolean
 g_union_info_is_discriminated (GIUnionInfo *info);

Return true if this union contains discriminator field.

@@ -306,13 +306,13 @@

Returns

-

TRUE if this is a discriminated union, FALSE otherwise

+

TRUE if this is a discriminated union, FALSE otherwise


g_union_info_get_discriminator_offset ()

-
gint
+
gint
 g_union_info_get_discriminator_offset (GIUnionInfo *info);

Returns offset of the discriminator field in the structure.

@@ -369,7 +369,7 @@

g_union_info_get_discriminator ()

GIConstantInfo *
 g_union_info_get_discriminator (GIUnionInfo *info,
-                                gint n);
+ gint n);

Obtain discriminator value assigned for n-th union field, i.e. n-th union field is the active one if discriminator contains this constant.

@@ -407,7 +407,7 @@

g_union_info_find_method ()

GIFunctionInfo *
 g_union_info_find_method (GIUnionInfo *info,
-                          const gchar *name);
+ const gchar *name);

Obtain the type information for method named name .

@@ -442,7 +442,7 @@

g_union_info_get_size ()

-
gsize
+
gsize
 g_union_info_get_size (GIUnionInfo *info);

Obtain the total size of the union.

@@ -468,7 +468,7 @@

g_union_info_get_alignment ()

-
gsize
+
gsize
 g_union_info_get_alignment (GIUnionInfo *info);

Obtain the required alignment of the union.

diff -Nru gobject-introspection-1.45.3/docs/reference/html/gi-GIVFuncInfo.html gobject-introspection-1.46.0/docs/reference/html/gi-GIVFuncInfo.html --- gobject-introspection-1.45.3/docs/reference/html/gi-GIVFuncInfo.html 2015-07-03 20:31:19.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/html/gi-GIVFuncInfo.html 2015-09-22 11:27:24.000000000 +0000 @@ -49,7 +49,7 @@
-gint +gint g_vfunc_info_get_offset () @@ -73,7 +73,7 @@
-gpointer +gpointer g_vfunc_info_get_address () @@ -81,7 +81,7 @@
-gboolean +gboolean g_vfunc_info_invoke () @@ -155,7 +155,7 @@

g_vfunc_info_get_offset ()

-
gint
+
gint
 g_vfunc_info_get_offset (GIVFuncInfo *info);

Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown.

@@ -204,7 +204,7 @@

Returns

-

the signal or NULL if none set.

+

the signal or NULL if none set.

[transfer full]

@@ -233,7 +233,7 @@

Returns

-

the GIVFuncInfo or NULL. Free it with +

the GIVFuncInfo or NULL. Free it with g_base_info_unref() when done.

[transfer full]

@@ -241,10 +241,10 @@

g_vfunc_info_get_address ()

-
gpointer
+
gpointer
 g_vfunc_info_get_address (GIVFuncInfo *info,
-                          GType implementor_gtype,
-                          GError **error);
+ GType implementor_gtype, + GError **error);

This method will look up where inside the type struct of implementor_gtype is the implementation for info @@ -265,12 +265,12 @@

implementor_gtype

GType implementing this virtual function

GType implementing this virtual function

 

error

return location for a GError

return location for a GError

 

implementor

GType of the type that implements this virtual function

GType of the type that implements this virtual function

 

an array of GIArguments, one for each in parameter of info . If there are no in parameter, in_args -can be NULL

 

an array of GIArguments, one for each out parameter of info . If there are no out parameters, out_args -may be NULL

 

return location for the return value of the function. If the function returns void, return_value may be -NULL

 

error

return location for detailed error information, or NULL

return location for detailed error information, or NULL

 

GI_VFUNC_THROWS

-

Includes a GError

+

Includes a GError

 
-gchar ** +gchar ** g_irepository_get_dependencies () @@ -58,7 +58,7 @@
-gchar ** +gchar ** g_irepository_get_immediate_dependencies () @@ -66,7 +66,7 @@
-gchar ** +gchar ** g_irepository_get_loaded_namespaces () @@ -74,7 +74,7 @@
-gint +gint g_irepository_get_n_infos () @@ -90,7 +90,7 @@
-GOptionGroup * +GOptionGroup * g_irepository_get_option_group () @@ -98,7 +98,7 @@
-GList * +GList * g_irepository_enumerate_versions () @@ -122,7 +122,7 @@
-GSList * +GSList * g_irepository_get_search_path () @@ -136,7 +136,7 @@
const gchar * +const gchar * g_irepository_get_typelib_path () @@ -144,7 +144,7 @@
-gboolean +gboolean g_irepository_is_registered () @@ -167,21 +167,21 @@
const gchar * +const gchar * g_irepository_get_c_prefix ()
const gchar * +const gchar * g_irepository_get_shared_library ()
const gchar * +const gchar * g_irepository_get_version () @@ -213,7 +213,7 @@
-gboolean +gboolean g_irepository_dump () @@ -259,7 +259,7 @@

Object Hierarchy

-
    GObject
+
    GObject
     ╰── GIRepository
 
@@ -285,7 +285,7 @@ eventuality that it would become possible, and as a convenience for higher level language bindings to conform to the GObject method call conventions.

-

All methods on GIRepository also accept NULL as an instance +

All methods on GIRepository also accept NULL as an instance parameter to mean this default repository, which is usually more convenient for C.

@@ -297,9 +297,9 @@

g_irepository_get_dependencies ()

-
gchar **
+
gchar **
 g_irepository_get_dependencies (GIRepository *repository,
-                                const gchar *namespace_);
+ const gchar *namespace_);

Return an array of all (transitive) versioned dependencies for namespace_ . Returned strings are of the form

@@ -321,7 +321,7 @@

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[nullable]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

version

Required version, may be NULL for latest.

Required version, may be NULL for latest.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

version

Version of namespace, may be NULL for latest.

Version of namespace, may be NULL for latest.

[allow-none]

error

a GError.

a GError.

 

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

version

Version of namespace, may be NULL for latest.

Version of namespace, may be NULL for latest.

[allow-none]

error

a GError.

a GError.

 

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

domain

a GError domain

a GError domain

 

repository

A GIRepository or NULL for the singleton +

A GIRepository or NULL for the singleton process-global default GIRepository.

[allow-none]

error

a GError

a GError

 

- This document is for GObject Introspection version 1.45.3 + This document is for GObject Introspection version 1.46.0 . The latest version of this documentation can be found on-line at http://developer.gnome.org/gi/unstable/. diff -Nru gobject-introspection-1.45.3/docs/reference/Makefile.in gobject-introspection-1.46.0/docs/reference/Makefile.in --- gobject-introspection-1.45.3/docs/reference/Makefile.in 2015-07-03 20:30:32.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/Makefile.in 2015-09-22 11:24:38.000000000 +0000 @@ -751,7 +751,7 @@ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true -sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) +sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent $(GTK_DOC_V_XML)_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ @@ -762,6 +762,17 @@ sgml.stamp: sgml-build.stamp @true +xml/gtkdocentities.ent: Makefile + $(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + ) > $@ + html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \ mkhtml_options=""; \ diff -Nru gobject-introspection-1.45.3/docs/reference/version.xml gobject-introspection-1.46.0/docs/reference/version.xml --- gobject-introspection-1.45.3/docs/reference/version.xml 2015-07-03 20:30:38.000000000 +0000 +++ gobject-introspection-1.46.0/docs/reference/version.xml 2015-09-22 11:24:42.000000000 +0000 @@ -1 +1 @@ -1.45.3 +1.46.0 diff -Nru gobject-introspection-1.45.3/gir/gio-2.0.c gobject-introspection-1.46.0/gir/gio-2.0.c --- gobject-introspection-1.45.3/gir/gio-2.0.c 2015-06-19 21:06:05.000000000 +0000 +++ gobject-introspection-1.46.0/gir/gio-2.0.c 2015-09-09 10:20:37.000000000 +0000 @@ -316,8 +316,8 @@ * * In the event that the application is marked * %G_APPLICATION_HANDLES_COMMAND_LINE the "normal processing" will - * send the @option dictionary to the primary instance where it can be - * read with g_application_command_line_get_options(). The signal + * send the @options dictionary to the primary instance where it can be + * read with g_application_command_line_get_options_dict(). The signal * handler can modify the dictionary before returning, and the * modified dictionary will be sent. * @@ -2176,6 +2176,31 @@ /** + * GNetworkMonitor:network-metered: + * + * Whether the network is considered metered. That is, whether the + * system has traffic flowing through the default connection that is + * subject to limitations set by service providers. For example, traffic + * might be billed by the amount of data transmitted, or there might be a + * quota on the amount of traffic per month. This is typical with tethered + * connections (3G and 4G) and in such situations, bandwidth intensive + * applications may wish to avoid network activity where possible if it will + * cost the user money or use up their limited quota. + * + * If more information is required about specific devices then the + * system network management API should be used instead (for example, + * NetworkManager or ConnMan). + * + * If this information is not available then no networks will be + * marked as metered. + * + * See also #GNetworkMonitor:network-available. + * + * Since: 2.46 + */ + + +/** * GNetworkMonitorInterface: * @g_iface: The parent interface. * @network_changed: the virtual function pointer for the @@ -2999,6 +3024,15 @@ /** + * GSocketService:active: + * + * Whether the service is currently accepting connections. + * + * Since: 2.46 + */ + + +/** * GSrvTarget: * * A single target host/port that a network service is running on. @@ -6997,16 +7031,6 @@ * the names must begin with a lowercase character, must not end * with a '-', and must not contain consecutive dashes. * - * GSettings supports change notification. The primary mechanism to - * watch for changes is to connect to the "changed" signal. You can - * optionally watch for changes on only a single key by using a signal - * detail. Signals are only guaranteed to be emitted for a given key - * after you have read the value of that key while a signal handler was - * connected for that key. Signals may or may not be emitted in the - * case that the key "changed" to the value that you had previously - * read. Signals may be reported in additional cases as well and the - * "changed" signal should really be treated as "may have changed". - * * Similar to GConf, the default values in GSettings schemas can be * localized, but the localized values are stored in gettext catalogs * and looked up with the domain that is specified in the @@ -10867,6 +10891,16 @@ /** + * _g_poll_file_monitor_new: + * @file: a #GFile. + * + * Polls @file for changes. + * + * Returns: a new #GFileMonitor for the given #GFile. + */ + + +/** * g_action_activate: * @action: a #GAction * @parameter: (allow-none): the parameter to the activation @@ -15423,6 +15457,13 @@ * message. Similary, if a filter consumes an outgoing message, the * message will not be sent to the other peer. * + * If @user_data_free_func is non-%NULL, it will be called (in the + * thread-default main context of the thread you are calling this + * method from) at some point after @user_data is no longer + * needed. (It is not guaranteed to be called synchronously when the + * filter is removed, and may be called after @connection has been + * destroyed.) + * * Returns: a filter identifier that can be used with * g_dbus_connection_remove_filter() * Since: 2.26 @@ -16179,6 +16220,25 @@ /** + * g_dbus_connection_register_object_with_closures: (rename-to g_dbus_connection_register_object) + * @connection: A #GDBusConnection. + * @object_path: The object path to register at. + * @interface_info: Introspection data for the interface. + * @method_call_closure: (nullable): #GClosure for handling incoming method calls. + * @get_property_closure: (nullable): #GClosure for getting a property. + * @set_property_closure: (nullable): #GClosure for setting a property. + * @error: Return location for error or %NULL. + * + * Version of g_dbus_connection_register_object() using closures instead of a + * #GDBusInterfaceVTable for easier binding in other languages. + * + * Returns: 0 if @error is set, otherwise a registration id (never 0) + * that can be used with g_dbus_connection_unregister_object() . + * Since: 2.46 + */ + + +/** * g_dbus_connection_register_subtree: * @connection: a #GDBusConnection * @object_path: the object path to register the subtree at @@ -16237,6 +16297,13 @@ * * Removes a filter. * + * Note that since filters run in a different thread, there is a race + * condition where it is possible that the filter will be running even + * after calling g_dbus_connection_remove_filter(), so you cannot just + * free data that the filter might be using. Instead, you should pass + * a #GDestroyNotify to g_dbus_connection_add_filter(), which will be + * called when it is guaranteed that the data is no longer needed. + * * Since: 2.26 */ @@ -16426,7 +16493,8 @@ * all object paths * @arg0: (allow-none): contents of first string argument to match on or %NULL * to match on all kinds of arguments - * @flags: flags describing how to subscribe to the signal (currently unused) + * @flags: #GDBusSignalFlags describing how arg0 is used in subscribing to the + * signal * @callback: callback to invoke when there is a signal matching the requested data * @user_data: user data to pass to @callback * @user_data_free_func: (allow-none): function to free @user_data with when @@ -16452,6 +16520,13 @@ * interpreted as part of a namespace or path. The first argument * of a signal is matched against that part as specified by D-Bus. * + * If @user_data_free_func is non-%NULL, it will be called (in the + * thread-default main context of the thread you are calling this + * method from) at some point after @user_data is no longer + * needed. (It is not guaranteed to be called synchronously when the + * signal is unsubscribed from, and may be called after @connection + * has been destroyed.) + * * Returns: a subscription identifier that can be used with g_dbus_connection_signal_unsubscribe() * Since: 2.26 */ @@ -21415,7 +21490,8 @@ * g_file_get_path: * @file: input #GFile * - * Gets the local pathname for #GFile, if one exists. + * Gets the local pathname for #GFile, if one exists. If non-%NULL, this is + * guaranteed to be an absolute, canonical path. It might contain symlinks. * * This call does no blocking I/O. * @@ -21483,10 +21559,10 @@ * * If @parent is %NULL then this function returns %TRUE if @file has any * parent at all. If @parent is non-%NULL then %TRUE is only returned - * if @file is a child of @parent. + * if @file is an immediate child of @parent. * - * Returns: %TRUE if @file is a child of @parent (or any parent in the - * case that @parent is %NULL). + * Returns: %TRUE if @file is an immediate child of @parent (or any parent in + * the case that @parent is %NULL). * Since: 2.24 */ @@ -26341,6 +26417,18 @@ /** + * g_list_store_sort: + * @store: a #GListStore + * @compare_func: (scope call): pairwise comparison function for sorting + * @user_data: (closure): user data for @compare_func + * + * Sort the items in @store according to @compare_func. + * + * Since: 2.46 + */ + + +/** * g_list_store_splice: * @store: a #GListStore * @position: the position at which to make the change @@ -28450,6 +28538,18 @@ /** + * g_network_monitor_get_network_metered: + * @monitor: the #GNetworkMonitor + * + * Checks if the network is metered. + * See #GNetworkMonitor:network-metered for more details. + * + * Returns: whether the connection is metered + * Since: 2.46 + */ + + +/** * g_network_service_get_domain: * @srv: a #GNetworkService * @@ -29448,16 +29548,6 @@ /** - * g_poll_file_monitor_new: - * @file: a #GFile. - * - * Polls @file for changes. - * - * Returns: a new #GFileMonitor for the given #GFile. - */ - - -/** * g_pollable_input_stream_can_poll: * @stream: a #GPollableInputStream. * @@ -30432,6 +30522,9 @@ * The return result is a %NULL terminated list of strings which should * be released with g_strfreev(). * + * If @path is invalid or does not exist in the #GResource, + * %G_RESOURCE_ERROR_NOT_FOUND will be returned. + * * @lookup_flags controls the behaviour of the lookup. * * Returns: (array zero-terminated=1) (transfer full): an array of constant strings @@ -34743,6 +34836,9 @@ * On success, the returned #GSocket takes ownership of @fd. On failure, the * caller must close @fd themselves. * + * Since GLib 2.46, it is no longer a fatal error to call this on a non-socket + * descriptor. Instead, a GError will be set with code %G_IO_ERROR_FAILED + * * Returns: a #GSocket or %NULL on error. * Free the returned object with g_object_unref(). * Since: 2.22 diff -Nru gobject-introspection-1.45.3/gir/glib-2.0.c gobject-introspection-1.46.0/gir/glib-2.0.c --- gobject-introspection-1.45.3/gir/glib-2.0.c 2015-07-03 11:46:47.000000000 +0000 +++ gobject-introspection-1.46.0/gir/glib-2.0.c 2015-09-22 11:22:55.000000000 +0000 @@ -6956,6 +6956,35 @@ * On UNIX, the GLib mainloop is incompatible with fork(). Any program * using the mainloop must either exec() or exit() from the child * without returning to the mainloop. + * + * ## Memory management of sources # {#mainloop-memory-management} + * + * There are two options for memory management of the user data passed to a + * #GSource to be passed to its callback on invocation. This data is provided + * in calls to g_timeout_add(), g_timeout_add_full(), g_idle_add(), etc. and + * more generally, using g_source_set_callback(). This data is typically an + * object which ‘owns’ the timeout or idle callback, such as a widget or a + * network protocol implementation. In many cases, it is an error for the + * callback to be invoked after this owning object has been destroyed, as that + * results in use of freed memory. + * + * The first, and preferred, option is to store the source ID returned by + * functions such as g_timeout_add() or g_source_attach(), and explicitly + * remove that source from the main context using g_source_remove() when the + * owning object is finalized. This ensures that the callback can only be + * invoked while the object is still alive. + * + * The second option is to hold a strong reference to the object in the + * callback, and to release it in the callback’s #GDestroyNotify. This ensures + * that the object is kept alive until after the source is finalized, which is + * guaranteed to be after it is invoked for the final time. The #GDestroyNotify + * is another callback passed to the ‘full’ variants of #GSource functions (for + * example, g_timeout_add_full()). It is called when the source is finalized, + * and is designed for releasing references like this. + * + * One important caveat of this second approach is that it will keep the object + * alive indefinitely if the main loop is stopped before the #GSource is + * invoked, which may be undesirable. */ @@ -7023,7 +7052,7 @@ * g_slice_free(), plain malloc() with free(), and (if you're using C++) * new with delete and new[] with delete[]. Otherwise bad things can happen, * since these allocators may use different memory pools (and new/delete call - * constructors and destructors). See also g_mem_set_vtable(). + * constructors and destructors). */ @@ -7585,6 +7614,13 @@ * certain number of columns, then \%Ns is not a correct solution * anyway, since it fails to take wide characters (see g_unichar_iswide()) * into account. + * + * Note also that there are various printf() parameters which are platform + * dependent. GLib provides platform independent macros for these parameters + * which should be used instead. A common example is %G_GUINT64_FORMAT, which + * should be used instead of `%llu` or similar parameters for formatting + * 64-bit integers. These macros are all named `G_*_FORMAT`; see + * [Basic Types][glib-Basic-Types]. */ @@ -7641,11 +7677,11 @@ * "assertions", which consists of running the test_assertions function. * * In addition to the traditional g_assert(), the test framework provides - * an extended set of assertions for string and numerical comparisons: - * g_assert_cmpfloat(), g_assert_cmpint(), g_assert_cmpuint(), - * g_assert_cmphex(), g_assert_cmpstr(). The advantage of these variants - * over plain g_assert() is that the assertion messages can be more - * elaborate, and include the values of the compared entities. + * an extended set of assertions for comparisons: g_assert_cmpfloat(), + * g_assert_cmpint(), g_assert_cmpuint(), g_assert_cmphex(), + * g_assert_cmpstr(), and g_assert_cmpmem(). The advantage of these + * variants over plain g_assert() is that the assertion messages can be + * more elaborate, and include the values of the compared entities. * * GLib ships with two utilities called [gtester][gtester] and * [gtester-report][gtester-report] to facilitate running tests and producing @@ -7837,6 +7873,20 @@ * and #GAsyncQueue, which are thread-safe and need no further * application-level locking to be accessed from multiple threads. * Most refcounting functions such as g_object_ref() are also thread-safe. + * + * A common use for #GThreads is to move a long-running blocking operation out + * of the main thread and into a worker thread. For GLib functions, such as + * single GIO operations, this is not necessary, and complicates the code. + * Instead, the `…_async()` version of the function should be used from the main + * thread, eliminating the need for locking and synchronisation between multiple + * threads. If an operation does need to be moved to a worker thread, consider + * using g_task_run_in_thread(), or a #GThreadPool. #GThreadPool is often a + * better choice than #GThread, as it handles thread reuse and task queueing; + * #GTask uses this internally. + * + * However, if multiple blocking operations need to be performed in sequence, + * and it is not possible to use #GTask for them, moving them to a worker thread + * can clarify the code. */ @@ -8992,6 +9042,30 @@ /** + * g_assert_cmpmem: + * @m1: pointer to a buffer + * @l1: length of @m1 + * @m2: pointer to another buffer + * @l2: length of @m2 + * + * Debugging macro to compare memory regions. If the comparison fails, + * an error message is logged and the application is either terminated + * or the testcase marked as failed. + * + * The effect of `g_assert_cmpmem (m1, l1, m2, l2)` is + * the same as `g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)`. + * The advantage of this macro is that it can produce a message that + * includes the actual values of @l1 and @l2. + * + * |[ + * g_assert_cmpmem (buf->data, buf->len, expected, sizeof (expected)); + * ]| + * + * Since: 2.46 + */ + + +/** * g_assert_cmpstr: * @s1: a string (may be %NULL) * @cmp: The comparison operator to use. @@ -9373,7 +9447,7 @@ * @queue: a #GAsyncQueue * @data: the @data to remove from the @queue * - * Remove an item from the queue. This function does not block. + * Remove an item from the queue. * * Returns: %TRUE if the item was removed * Since: 2.46 @@ -9385,7 +9459,7 @@ * @queue: a #GAsyncQueue * @data: the @data to remove from the @queue * - * Remove an item from the queue. This function does not block. + * Remove an item from the queue. * * This function must be called while holding the @queue's lock. * @@ -10223,7 +10297,8 @@ * from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63, * usually). To start searching from the 0th bit, set @nth_bit to -1. * - * Returns: the index of the first bit set which is higher than @nth_bit + * Returns: the index of the first bit set which is higher than @nth_bit, or -1 + * if no higher bits are set */ @@ -10238,7 +10313,8 @@ * usually). To start searching from the last bit, set @nth_bit to * -1 or GLIB_SIZEOF_LONG * 8. * - * Returns: the index of the first bit set which is lower than @nth_bit + * Returns: the index of the first bit set which is lower than @nth_bit, or -1 + * if no lower bits are set */ @@ -14450,6 +14526,10 @@ * * A convenience function/macro to log an error message. * + * This is not intended for end user error reporting. Use of #GError is + * preferred for that instead, as it allows calling functions to perform actions + * conditional on the type of error. + * * Error messages are always fatal, resulting in a call to * abort() to terminate the application. This function will * result in a core dump; don't use it for errors you expect. @@ -16018,7 +16098,7 @@ * If you supplied a @key_destroy_func when creating the * #GHashTable, the old key is freed using that function. * - * Returns: %TRUE of the key did not exist yet + * Returns: %TRUE if the key did not exist yet */ @@ -16646,6 +16726,9 @@ * returns %FALSE it is automatically removed from the list of event * sources and will not be called again. * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle the return value and memory management of @data. + * * This internally creates a main loop source using g_idle_source_new() * and attaches it to the global #GMainContext using g_source_attach(), so * the callback will be invoked in whichever thread is running that main @@ -16668,6 +16751,9 @@ * events pending. If the function returns %FALSE it is automatically * removed from the list of event sources and will not be called again. * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle the return value and memory management of @data. + * * This internally creates a main loop source using g_idle_source_new() * and attaches it to the global #GMainContext using g_source_attach(), so * the callback will be invoked in whichever thread is running that main @@ -20688,25 +20774,20 @@ * This function is useful for avoiding an extra copy of allocated memory returned * by a non-GLib-based API. * - * A different allocator can be set using g_mem_set_vtable(). - * * Returns: if %TRUE, malloc() and g_malloc() can be mixed. + * Deprecated: 2.46: GLib always uses the system malloc, so this function always + * returns %TRUE. */ /** * g_mem_profile: * - * Outputs a summary of memory usage. - * - * It outputs the frequency of allocations of different sizes, - * the total number of bytes which have been allocated, - * the total number of bytes which have been freed, - * and the difference between the previous two values, i.e. the number of bytes - * still in use. + * GLib used to support some tools for memory profiling, but this + * no longer works. There are many other useful tools for memory + * profiling these days which can be used instead. * - * Note that this function will not output anything unless you have - * previously installed the #glib_mem_profiler_table with g_mem_set_vtable(). + * Deprecated: 2.46: Use other memory profiling tools instead */ @@ -20714,17 +20795,12 @@ * g_mem_set_vtable: * @vtable: table of memory allocation routines. * - * Sets the #GMemVTable to use for memory allocation. You can use this - * to provide custom memory allocation routines. + * This function used to let you override the memory allocation function. + * However, its use was incompatible with the use of global constructors + * in GLib and GIO, because those use the GLib allocators before main is + * reached. Therefore this function is now deprecated and is just a stub. * - * The @vtable only needs to provide malloc(), realloc(), and free() - * functions; GLib can provide default implementations of the others. - * The malloc() and realloc() implementations should return %NULL on - * failure, GLib will handle error-checking for you. @vtable is copied, - * so need not persist after this function has been called. - * - * Note that this function must be called before using any other GLib - * functions. + * Deprecated: 2.46: Use other memory profiling tools instead */ @@ -26709,6 +26785,9 @@ * should not count on @func being called with @data as its first * parameter. * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle memory management of @data. + * * Typically, you won't use this function. Instead use functions specific * to the type of source you are using. */ @@ -26952,13 +27031,8 @@ * main(). wmain() has a wide character argument vector as parameter. * * At least currently, mingw doesn't support wmain(), so if you use - * mingw to develop the spawned program, it will have to call the - * undocumented function __wgetmainargs() to get the wide character - * argument vector and environment. See gspawn-win32-helper.c in the - * GLib sources or init.c in the mingw runtime sources for a prototype - * for that function. Alternatively, you can retrieve the Win32 system - * level wide character command line passed to the spawned program - * using the GetCommandLineW() function. + * mingw to develop the spawned program, it should call + * g_win32_get_command_line() to get arguments in UTF-8. * * On Windows the low-level child process creation API CreateProcess() * doesn't use argument vectors, but a command line. The C runtime @@ -27356,6 +27430,10 @@ * It can be passed to g_hash_table_new() as the @hash_func parameter, * when using non-%NULL strings as keys in a #GHashTable. * + * Note that this function may not be a perfect fit for all use cases. + * For example, it produces some hash collisions with strings as short + * as 2. + * * Returns: a hash value corresponding to the key */ @@ -27675,13 +27753,17 @@ * @errnum: the system error number. See the standard C %errno * documentation * - * Returns a string corresponding to the given error code, e.g. - * "no such process". You should use this function in preference to - * strerror(), because it returns a string in UTF-8 encoding, and since - * not all platforms support the strerror() function. + * Returns a string corresponding to the given error code, e.g. "no + * such process". Unlike strerror(), this always returns a string in + * UTF-8 encoding, and the pointer is guaranteed to remain valid for + * the lifetime of the process. + * + * Note that the string may be translated according to the current locale. + * + * The value of %errno will not be changed by this function. * * Returns: a UTF-8 string describing the error code. If the error code - * is unknown, it returns "unknown error ()". + * is unknown, it returns a string like "unknown error ()". */ @@ -27996,7 +28078,7 @@ /** * g_string_free: - * @string: a #GString + * @string: (transfer full): a #GString * @free_segment: if %TRUE, the actual character data is freed as well * * Frees the memory allocated for the #GString. @@ -29795,6 +29877,10 @@ * If the thread can not be created the program aborts. See * g_thread_try_new() if you want to attempt to deal with failures. * + * If you are using threads to offload (potentially many) short-lived tasks, + * #GThreadPool may be more appropriate than manually spawning and tracking + * multiple #GThreads. + * * To free the struct returned by this function, use g_thread_unref(). * Note that g_thread_join() implicitly unrefs the #GThread as well. * @@ -30463,6 +30549,9 @@ * timeout is recalculated based on the current time and the given interval * (it does not try to 'catch up' time lost in delays). * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle the return value and memory management of @data. + * * If you want to have a timer in the "seconds" range and do not care * about the exact time of the first call of the timer, use the * g_timeout_add_seconds() function; this function allows for more @@ -30504,6 +30593,9 @@ * timeout is recalculated based on the current time and the given interval * (it does not try to 'catch up' time lost in delays). * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle the return value and memory management of @data. + * * This internally creates a main loop source using g_timeout_source_new() * and attaches it to the global #GMainContext using g_source_attach(), so * the callback will be invoked in whichever thread is running that main @@ -30537,6 +30629,9 @@ * of one second. If you need finer precision and have such a timeout, * you may want to use g_timeout_add() instead. * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle the return value and memory management of @data. + * * The interval given is in terms of monotonic time, not wall clock * time. See g_get_monotonic_time(). * @@ -30572,6 +30667,9 @@ * After each call to the timeout function, the time of the next * timeout is recalculated based on the current time and the given @interval * + * See [memory management of sources][mainloop-memory-management] for details + * on how to handle the return value and memory management of @data. + * * If you want timing more precise than whole seconds, use g_timeout_add() * instead. * @@ -33641,7 +33739,7 @@ * type. This includes the types %G_VARIANT_TYPE_STRING, * %G_VARIANT_TYPE_OBJECT_PATH and %G_VARIANT_TYPE_SIGNATURE. * - * The string will always be UTF-8 encoded. + * The string will always be UTF-8 encoded, and will never be %NULL. * * If @length is non-%NULL then the length of the string (in bytes) is * returned there. For trusted values, this information is already @@ -34679,7 +34777,9 @@ * * Creates a string #GVariant with the contents of @string. * - * @string must be valid UTF-8. + * @string must be valid UTF-8, and must not be %NULL. To encode + * potentially-%NULL strings, use g_variant_new() with `ms` as the + * [format string][gvariant-format-strings-maybe-types]. * * Returns: (transfer none): a floating reference to a new string #GVariant instance * Since: 2.24 @@ -34707,7 +34807,8 @@ * * Creates a string #GVariant with the contents of @string. * - * @string must be valid UTF-8. + * @string must be valid UTF-8, and must not be %NULL. To encode + * potentially-%NULL strings, use this with g_variant_new_maybe(). * * This function consumes @string. g_free() will be called on @string * when it is no longer required. @@ -35750,6 +35851,10 @@ * * A convenience function/macro to log a warning message. * + * This is not intended for end user error reporting. Use of #GError is + * preferred for that instead, as it allows calling functions to perform actions + * conditional on the type of error. + * * You can make warnings fatal at runtime by setting the `G_DEBUG` * environment variable (see * [Running GLib Applications](glib-running.html)). @@ -36227,10 +36332,7 @@ /** * glib_mem_profiler_table: * - * A #GMemVTable containing profiling variants of the memory - * allocation functions. Use them together with g_mem_profile() - * in order to get information about the memory allocation pattern - * of your program. + * Deprecated: 2.46: Use other memory profiling tools instead */ diff -Nru gobject-introspection-1.45.3/gir/gobject-2.0.c gobject-introspection-1.46.0/gir/gobject-2.0.c --- gobject-introspection-1.45.3/gir/gobject-2.0.c 2015-07-03 11:46:47.000000000 +0000 +++ gobject-introspection-1.46.0/gir/gobject-2.0.c 2015-09-22 11:22:55.000000000 +0000 @@ -441,10 +441,10 @@ * separately (typically by using #GArray or #GPtrArray) and put a pointer * to the buffer in the structure. * - * A final word about type names: Such an identifier needs to be at least - * three characters long. There is no upper length limit. The first character - * needs to be a letter (a-z or A-Z) or an underscore '_'. Subsequent - * characters can be letters, numbers or any of '-_+'. + * As mentioned in the [GType conventions][gtype-conventions], type names must + * be at least three characters long. There is no upper length limit. The first + * character must be a letter (a–z or A–Z) or an underscore (‘_’). Subsequent + * characters can be letters, numbers or any of ‘-_+’. */ @@ -551,6 +551,12 @@ * construction and destruction, property access methods, and signal * support. Signals are described in detail [here][gobject-Signals]. * + * For a tutorial on implementing a new GObject class, see [How to define and + * implement a new GObject][howto-gobject]. For a list of naming conventions for + * GObjects and their methods, see the [GType conventions][gtype-conventions]. + * For the high-level concepts behind GObject, read [Instantiable classed types: + * Objects][gtype-instantiable-classed]. + * * ## Floating references # {#floating-ref} * * GInitiallyUnowned is derived from GObject. The only difference between @@ -686,6 +692,32 @@ * Specification of no detail argument for signal handlers (omission of the * detail part of the signal specification upon connection) serves as a * wildcard and matches any detail argument passed in to emission. + * + * ## Memory management of signal handlers # {#signal-memory-management} + * + * If you are connecting handlers to signals and using a #GObject instance as + * your signal handler user data, you should remember to pair calls to + * g_signal_connect() with calls to g_signal_handler_disconnect() or + * g_signal_handlers_disconnect_by_func(). While signal handlers are + * automatically disconnected when the object emitting the signal is finalised, + * they are not automatically disconnected when the signal handler user data is + * destroyed. If this user data is a #GObject instance, using it from a + * signal handler after it has been finalised is an error. + * + * There are two strategies for managing such user data. The first is to + * disconnect the signal handler (using g_signal_handler_disconnect() or + * g_signal_handlers_disconnect_by_func()) when the user data (object) is + * finalised; this has to be implemented manually. For non-threaded programs, + * g_signal_connect_object() can be used to implement this automatically. + * Currently, however, it is unsafe to use in threaded programs. + * + * The second is to hold a strong reference on the user data until after the + * signal is disconnected for other reasons. This can be implemented + * automatically using g_signal_connect_data(). + * + * The first approach is recommended, as the second approach can result in + * effective memory leaks of the user data if the signal handler is never + * disconnected for some reason. */ @@ -3502,11 +3534,11 @@ /** * g_param_spec_get_default_value: - * @param: a #GParamSpec + * @pspec: a #GParamSpec * - * Gets the default value of @param as a pointer to a #GValue. + * Gets the default value of @pspec as a pointer to a #GValue. * - * The #GValue will remain value for the life of @param. + * The #GValue will remain value for the life of @pspec. * * Returns: a pointer to a #GValue which must not be modified * Since: 2.38 @@ -3526,6 +3558,17 @@ */ +/** + * g_param_spec_get_name_quark: + * @param: a #GParamSpec + * + * Gets the GQuark for the name. + * + * Returns: the GQuark for @pspec->name. + * Since: 2.46 + */ + + /** * g_param_spec_get_nick: * @pspec: a valid #GParamSpec diff -Nru gobject-introspection-1.45.3/girepository/girepository.c gobject-introspection-1.46.0/girepository/girepository.c --- gobject-introspection-1.45.3/girepository/girepository.c 2015-05-20 20:26:37.000000000 +0000 +++ gobject-introspection-1.46.0/girepository/girepository.c 2015-07-30 10:32:27.000000000 +0000 @@ -739,7 +739,6 @@ typedef struct { const gchar *gtype_name; GITypelib *result_typelib; - gboolean found_prefix; } FindByGTypeData; static DirEntry * @@ -757,8 +756,6 @@ { if (!g_typelib_matches_gtype_name_prefix (typelib, data->gtype_name)) continue; - - data->found_prefix = TRUE; } ret = g_typelib_get_dir_entry_by_gtype_name (typelib, data->gtype_name); @@ -805,7 +802,6 @@ data.gtype_name = g_type_name (gtype); data.result_typelib = NULL; - data.found_prefix = FALSE; /* Inside each typelib, we include the "C prefix" which acts as * a namespace mechanism. For GtkTreeView, the C prefix is Gtk. @@ -818,13 +814,6 @@ if (entry == NULL) entry = find_by_gtype (repository->priv->lazy_typelibs, &data, TRUE); - /* If we have no result, but we did find a typelib claiming to - * offer bindings for such a prefix, bail out now on the assumption - * that a more exhaustive search would not produce any results. - */ - if (entry == NULL && data.found_prefix) - return NULL; - /* Not ever class library necessarily specifies a correct c_prefix, * so take a second pass. This time we will try a global lookup, * ignoring prefixes. diff -Nru gobject-introspection-1.45.3/giscanner/cachestore.py gobject-introspection-1.46.0/giscanner/cachestore.py --- gobject-introspection-1.45.3/giscanner/cachestore.py 2015-07-03 11:46:48.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/cachestore.py 2015-08-21 12:03:01.000000000 +0000 @@ -64,7 +64,8 @@ current_hash = _get_versionhash() version = os.path.join(self._directory, _CACHE_VERSION_FILENAME) try: - cache_hash = open(version).read() + with open(version, 'r') as version_file: + cache_hash = version_file.read() except IOError as e: # File does not exist if e.errno == errno.ENOENT: @@ -75,11 +76,16 @@ if current_hash == cache_hash: return - versiontmp = version + '.tmp' - self._clean() + + tmp_fd, tmp_filename = tempfile.mkstemp(prefix='g-ir-scanner-cache-version-') try: - fp = open(versiontmp, 'w') + with os.fdopen(tmp_fd, 'w') as tmp_file: + tmp_file.write(current_hash) + + # On Unix, this would just be os.rename() but Windows + # doesn't allow that. + shutil.move(tmp_filename, version) except IOError as e: # Permission denied if e.errno == errno.EACCES: @@ -87,12 +93,6 @@ else: raise - fp.write(current_hash) - fp.close() - # On Unix, this would just be os.rename() but Windows - # doesn't allow that. - shutil.move(versiontmp, version) - def _get_filename(self, filename): # If we couldn't create the directory we're probably # on a read only home directory where we just disable @@ -138,7 +138,8 @@ tmp_fd, tmp_filename = tempfile.mkstemp(prefix='g-ir-scanner-cache-') try: - cPickle.dump(data, os.fdopen(tmp_fd, 'w')) + with os.fdopen(tmp_fd, 'w') as tmp_file: + cPickle.dump(data, tmp_file) except IOError as e: # No space left on device if e.errno == errno.ENOSPC: diff -Nru gobject-introspection-1.45.3/giscanner/ccompiler.py gobject-introspection-1.46.0/giscanner/ccompiler.py --- gobject-introspection-1.45.3/giscanner/ccompiler.py 2015-07-03 11:46:48.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/ccompiler.py 2015-09-09 10:20:37.000000000 +0000 @@ -21,6 +21,14 @@ import os import subprocess +import sys +import distutils + +from distutils.msvccompiler import MSVCCompiler +from distutils.unixccompiler import UnixCCompiler +from distutils.cygwinccompiler import Mingw32CCompiler +from distutils.sysconfig import customize_compiler + from . import utils @@ -30,93 +38,231 @@ compiler = None _cflags_no_deprecation_warnings = '' - def __init__(self, compiler_name=None): - pass + def __init__(self, + environ=os.environ, + osname=os.name, + compiler_name=None): + + if osname == 'nt': + # The compiler used here on Windows may well not be + # the same compiler that was used to build Python, + # as the official Python binaries are built with + # Visual Studio + if compiler_name is None: + if environ.get('MSYSTEM') == 'MINGW32' or environ.get('MSYSTEM') == 'MINGW64': + compiler_name = 'mingw32' + else: + compiler_name = distutils.ccompiler.get_default_compiler() + if compiler_name != 'msvc' and \ + compiler_name != 'mingw32': + raise SystemExit('Specified Compiler \'%s\' is unsupported.' % compiler_name) + else: + # XXX: Is it common practice to use a non-Unix compiler + # class instance on non-Windows on platforms g-i supports? + compiler_name = distutils.ccompiler.get_default_compiler() + + # Now, create the distutils ccompiler instance based on the info we have. + if compiler_name == 'msvc': + # For MSVC, we need to create a instance of a subclass of distutil's + # MSVC9Compiler class, as it does not provide a preprocess() + # implementation + from . import msvccompiler + self.compiler = msvccompiler.get_msvc_compiler() + + else: + self.compiler = distutils.ccompiler.new_compiler(compiler=compiler_name) + customize_compiler(self.compiler) + + # customize_compiler() from distutils only does customization + # for 'unix' compiler type. Also, avoid linking to msvcrxx.dll + # for MinGW builds as the dumper binary does not link to the + # Python DLL, but link to msvcrt.dll if necessary. + if isinstance(self.compiler, Mingw32CCompiler): + if self.compiler.dll_libraries != ['msvcrt']: + self.compiler.dll_libraries = [] + if self.compiler.preprocessor is None: + self.compiler.preprocessor = self.compiler.compiler + ['-E'] + + if self.check_is_msvc(): + # We trick distutils to believe that we are (always) using a + # compiler supplied by a Windows SDK, so that we avoid launching + # a new build environment to detect the compiler that is used to + # build Python itself, which is not desirable, so that we use the + # compiler commands (and env) as-is. + os.environ['DISTUTILS_USE_SDK'] = '1' + if 'MSSdk' not in os.environ: + if 'WindowsSDKDir' in os.environ: + os.environ['MSSdk'] = os.environ.get('WindowsSDKDir') + elif os.environ.get('VCInstallDir'): + os.environ['MSSdk'] = os.environ.get('VCInstallDir') - def get_internal_link_flags(self, - args, - libtool, - libraries, - libpaths, - pkgconfig_msvc_flags, - ns, - ns_version): + self.compiler_cmd = 'cl.exe' + + self._cflags_no_deprecation_warnings = "-wd4996" + else: + if (isinstance(self.compiler, Mingw32CCompiler)): + self.compiler_cmd = self.compiler.compiler[0] + else: + self.compiler_cmd = ' '.join(self.compiler.compiler) + + self._cflags_no_deprecation_warnings = "-Wno-deprecated-declarations" + + def get_internal_link_flags(self, args, libtool, libraries, libpaths): # An "internal" link is where the library to be introspected # is being built in the current directory. - # Search the current directory first - # (This flag is not supported nor needed for Visual C++) - if pkgconfig_msvc_flags == '': - args.append('-L.') - - # https://bugzilla.gnome.org/show_bug.cgi?id=625195 if not libtool: - # We don't have -Wl,-rpath for Visual C++, and that's - # going to cause a problem. Instead, link to internal - # libraries by deducing the .lib file name using - # the namespace name and version - if pkgconfig_msvc_flags: - if ns_version: - args.append(str.lower(ns) + - '-' + - ns_version + '.lib') - else: - args.append(str.lower(ns) + '.lib') + # non-libtool case: prepare distutils use + if self.check_is_msvc(): + for library in libraries: + # MSVC Builds don't use libtool, so no .la libraries, + # so just add the library directly. + self.compiler.add_library(library) + for libpath in libpaths: + self.compiler.add_library_dir(libpath) else: + # Search the current directory first + # (This flag is not supported nor needed for Visual C++) + self.compiler.add_library_dir('.') + if os.name != 'nt': + self.compiler.add_runtime_library_dir('.') + + # https://bugzilla.gnome.org/show_bug.cgi?id=625195 args.append('-Wl,-rpath=.') - # Ensure libraries are always linked as we are going to use ldd to work - # out their names later - if not libtool and pkgconfig_msvc_flags == '': - args.append('-Wl,--no-as-needed') + # Ensure libraries are always linked as we are going to use ldd to work + # out their names later + args.append('-Wl,--no-as-needed') + + for library in libraries: + self.compiler.add_library(library) + if not self.check_is_msvc(): + for library_path in libpaths: + args.append('-L' + library_path) + if os.path.isabs(library_path): + args.append('-Wl,-rpath=' + library_path) - for library in libraries: - # Visual C++: We have the needed .lib files now, and we need to link - # to .lib files, not the .dll as the --library option specifies the - # .dll(s) the .gir file refers to - if pkgconfig_msvc_flags == '': + else: + # libtool case: assemble linker command arguments, like we did before + args.append('-L.') + for library in libraries: if library.endswith(".la"): # explicitly specified libtool library args.append(library) else: args.append('-l' + library) - for library_path in libpaths: - # Not used/needed on Visual C++, and -Wl,-rpath options - # will cause grief - if pkgconfig_msvc_flags == '': + for library_path in libpaths: args.append('-L' + library_path) if os.path.isabs(library_path): - if libtool: - args.append('-rpath') - args.append(library_path) - else: - args.append('-Wl,-rpath=' + library_path) + args.append('-rpath') + args.append(library_path) - def get_external_link_flags(self, args, libraries, pkgconfig_msvc_flags): + def get_external_link_flags(self, args, libtool, libraries): # An "external" link is where the library to be introspected # is installed on the system; this case is used for the scanning # of GLib in gobject-introspection itself. for library in libraries: - # The --library option on Windows pass in the .dll file(s) the - # .gir files refer to, so don't link to them on Visual C++ - if pkgconfig_msvc_flags == '': + if not libtool: + self.compiler.add_library(library) + else: if library.endswith(".la"): # explicitly specified libtool library args.append(library) else: args.append('-l' + library) + def preprocess(self, source, output, cpp_options): + extra_postargs = ['-C'] + (include_paths, macros, postargs) = self._set_cpp_options(cpp_options) + + # We always want to include the current path + include_dirs = ['.'] + + include_dirs.extend(include_paths) + extra_postargs.extend(postargs) + + # Define these macros when using Visual C++ to silence many warnings, + # and prevent stepping on many Visual Studio-specific items, so that + # we don't have to handle them specifically in scannerlexer.l + if self.check_is_msvc(): + macros.append(('_USE_DECLSPECS_FOR_SAL', None)) + macros.append(('_CRT_SECURE_NO_WARNINGS', None)) + macros.append(('_CRT_NONSTDC_NO_WARNINGS', None)) + macros.append(('SAL_NO_ATTRIBUTE_DECLARATIONS', None)) + + self.compiler.preprocess(source=source, + output_file=output, + macros=macros, + include_dirs=include_dirs, + extra_postargs=extra_postargs) + + def compile(self, pkg_config_cflags, cpp_includes, source, init_sections): + extra_postargs = [] + includes = [] + source_str = ''.join(source) + tmpdir_idx = source_str.rfind(os.sep, 0, source_str.rfind(os.sep)) + (include_paths, macros, extra_args) = \ + self._set_cpp_options(pkg_config_cflags) + + for include in cpp_includes: + includes.append(include) + + if isinstance(self.compiler, UnixCCompiler): + # This is to handle the case where macros are defined in CFLAGS + cflags = os.environ.get('CFLAGS') + if cflags: + for i, cflag in enumerate(cflags.split()): + if cflag.startswith('-D'): + stridx = cflag.find('=') + if stridx > -1: + macroset = (cflag[2:stridx], + cflag[stridx + 1:]) + else: + macroset = (cflag[2:], None) + if macroset not in macros: + macros.append(macroset) + + # Do not add -Wall when using init code as we do not include any + # header of the library being introspected + if self.compiler_cmd == 'gcc' and not init_sections: + extra_postargs.append('-Wall') + extra_postargs.append(self._cflags_no_deprecation_warnings) + + includes.extend(include_paths) + extra_postargs.extend(extra_args) + + return self.compiler.compile(sources=source, + macros=macros, + include_dirs=includes, + extra_postargs=extra_postargs, + output_dir=source_str[tmpdir_idx + 1: + source_str.rfind(os.sep)]) + + def link(self, output, objects, lib_args): + # Note: This is used for non-libtool builds only! + extra_preargs = [] + extra_postargs = [] + library_dirs = [] + libraries = [] + + for arg in lib_args: + extra_postargs.append(arg) + + self.compiler.link(target_desc=self.compiler.EXECUTABLE, + objects=objects, + output_filename=output, + extra_preargs=extra_preargs, + extra_postargs=extra_postargs) + def resolve_windows_libs(self, libraries, options): args = [] - compiler_cmd = os.environ.get('CC', 'cc') libsearch = [] # When we are using Visual C++... - if 'cl.exe' in compiler_cmd or 'cl' in compiler_cmd: + if self.check_is_msvc(): # The search path of the .lib's on Visual C++ # is dependent on the LIB environmental variable, # so just query for that - is_msvc = True libpath = os.environ.get('LIB') libsearch = libpath.split(';') @@ -128,7 +274,6 @@ # When we are not using Visual C++ (i.e. we are using GCC)... else: - is_msvc = False libtool = utils.get_libtool_command(options) if libtool: args.append(utils.which(os.environ.get('SHELL', 'sh.exe'))) @@ -136,7 +281,7 @@ args.append('--mode=execute') # FIXME: it could have prefix (i686-w64-mingw32-dlltool.exe) args.extend(['dlltool.exe', '--identify']) - proc = subprocess.Popen([compiler_cmd, '-print-search-dirs'], + proc = subprocess.Popen([self.compiler_cmd, '-print-search-dirs'], stdout=subprocess.PIPE) o, e = proc.communicate() for line in o.splitlines(): @@ -168,7 +313,7 @@ stdout=subprocess.PIPE) o, e = proc.communicate() for line in o.splitlines(): - if is_msvc: + if self.check_is_msvc(): # On Visual Studio, dumpbin -symbols something.lib gives the # filename of DLL without the '.dll' extension that something.lib # links to, in the line that contains @@ -194,3 +339,38 @@ "ERROR: can't resolve libraries to shared libraries: " + ", ".join(not_resolved)) return shlibs + + def check_is_msvc(self): + if isinstance(self.compiler, MSVCCompiler): + return True + else: + return False + + # Private APIs + def _set_cpp_options(self, options): + includes = [] + macros = [] + other_options = [] + + for o in options: + option = utils.cflag_real_include_path(o) + if option.startswith('-I'): + includes.append(option[len('-I'):]) + elif option.startswith('-D'): + macro = option[len('-D'):] + macro_index = macro.find('=') + if macro_index == -1: + macro_name = macro + macro_value = None + else: + macro_name = macro[:macro_index] + macro_value = macro[macro_index + 1:] + macros.append((macro_name, macro_value)) + elif option.startswith('-U'): + macros.append((option[len('-U'):],)) + else: + # We expect the preprocessor to remove macros. If debugging is turned + # up high enough that won't happen, so don't add those flags. Bug #720504 + if option not in ['-g3', '-ggdb3', '-gstabs3', '-gcoff3', '-gxcoff3', '-gvms3']: + other_options.append(option) + return (includes, macros, other_options) diff -Nru gobject-introspection-1.45.3/giscanner/docmain.py gobject-introspection-1.46.0/giscanner/docmain.py --- gobject-introspection-1.45.3/giscanner/docmain.py 2015-06-18 09:24:02.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/docmain.py 2015-08-21 12:03:01.000000000 +0000 @@ -60,9 +60,8 @@ if args.write_sections: sections_file = generate_sections_file(transformer) - fp = open(args.output, 'w') - write_sections_file(fp, sections_file) - fp.close() + with open(args.output, 'w') as fp: + write_sections_file(fp, sections_file) else: writer = DocWriter(transformer, args.language) writer.write(args.output) diff -Nru gobject-introspection-1.45.3/giscanner/docwriter.py gobject-introspection-1.46.0/giscanner/docwriter.py --- gobject-introspection-1.45.3/giscanner/docwriter.py 2014-03-12 20:17:11.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/docwriter.py 2015-08-21 12:03:01.000000000 +0000 @@ -953,6 +953,5 @@ output_file_name = os.path.join(os.path.abspath(output), page_id + '.page') - fp = open(output_file_name, 'w') - fp.write(result) - fp.close() + with open(output_file_name, 'w') as fp: + fp.write(result) diff -Nru gobject-introspection-1.45.3/giscanner/dumper.py gobject-introspection-1.46.0/giscanner/dumper.py --- gobject-introspection-1.45.3/giscanner/dumper.py 2014-08-26 09:29:24.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/dumper.py 2015-09-09 10:20:37.000000000 +0000 @@ -24,6 +24,7 @@ import subprocess import shutil import tempfile +from distutils.errors import LinkError from .gdumpparser import IntrospectionBinary from . import utils @@ -78,25 +79,24 @@ class DumpCompiler(object): + _compiler = None + def __init__(self, options, get_type_functions, error_quark_functions): self._options = options self._get_type_functions = get_type_functions self._error_quark_functions = error_quark_functions - self._compiler_cmd = os.environ.get('CC', 'cc') - self._linker_cmd = os.environ.get('CC', self._compiler_cmd) + # Acquire the compiler (and linker) commands via the CCompiler class in ccompiler.py + self._compiler = CCompiler() + self._pkgconfig_cmd = os.environ.get('PKG_CONFIG', 'pkg-config') - self._pkgconfig_msvc_flags = '' - # Enable the --msvc-syntax pkg-config flag when - # the Microsoft compiler is used - # (This is the other way to check whether Visual C++ is used subsequently) - args = self._compiler_cmd.split() - if 'cl.exe' in args or 'cl' in args: - self._pkgconfig_msvc_flags = '--msvc-syntax' - self._uninst_srcdir = os.environ.get( - 'UNINSTALLED_INTROSPECTION_SRCDIR') + self._uninst_srcdir = os.environ.get('UNINSTALLED_INTROSPECTION_SRCDIR') self._packages = ['gio-2.0 gmodule-2.0'] self._packages.extend(options.packages) + if hasattr(self._compiler.compiler, 'linker_exe'): + self._linker_cmd = self._compiler.compiler.linker_exe + else: + self._linker_cmd = [] # Public API @@ -114,68 +114,59 @@ 'gdump.c') if not os.path.isfile(gdump_path): raise SystemExit("Couldn't find %r" % (gdump_path, )) - gdump_file = open(gdump_path) - gdump_contents = gdump_file.read() - gdump_file.close() + with open(gdump_path) as gdump_file: + gdump_contents = gdump_file.read() tpl_args['gdump_include'] = gdump_contents tpl_args['init_sections'] = "\n".join(self._options.init_sections) c_path = self._generate_tempfile(tmpdir, '.c') - f = open(c_path, 'w') - f.write(_PROGRAM_TEMPLATE % tpl_args) + with open(c_path, 'w') as f: + f.write(_PROGRAM_TEMPLATE % tpl_args) - # We need to reference our get_type and error_quark functions - # to make sure they are pulled in at the linking stage if the - # library is a static library rather than a shared library. - if len(self._get_type_functions) > 0: - for func in self._get_type_functions: - f.write("extern GType " + func + "(void);\n") - f.write("GType (*GI_GET_TYPE_FUNCS_[])(void) = {\n") - first = True - for func in self._get_type_functions: - if first: - first = False - else: - f.write(",\n") - f.write(" " + func) - f.write("\n};\n") - if len(self._error_quark_functions) > 0: - for func in self._error_quark_functions: - f.write("extern GQuark " + func + "(void);\n") - f.write("GQuark (*GI_ERROR_QUARK_FUNCS_[])(void) = {\n") - first = True - for func in self._error_quark_functions: - if first: - first = False - else: - f.write(",\n") - f.write(" " + func) - f.write("\n};\n") - f.close() - - # Microsoft compilers generate intermediate .obj files - # during compilation, unlike .o files like GCC and others - if self._pkgconfig_msvc_flags: - o_path = self._generate_tempfile(tmpdir, '.obj') - else: - o_path = self._generate_tempfile(tmpdir, '.o') + # We need to reference our get_type and error_quark functions + # to make sure they are pulled in at the linking stage if the + # library is a static library rather than a shared library. + if len(self._get_type_functions) > 0: + for func in self._get_type_functions: + f.write("extern GType " + func + "(void);\n") + f.write("GType (*GI_GET_TYPE_FUNCS_[])(void) = {\n") + first = True + for func in self._get_type_functions: + if first: + first = False + else: + f.write(",\n") + f.write(" " + func) + f.write("\n};\n") + if len(self._error_quark_functions) > 0: + for func in self._error_quark_functions: + f.write("extern GQuark " + func + "(void);\n") + f.write("GQuark (*GI_ERROR_QUARK_FUNCS_[])(void) = {\n") + first = True + for func in self._error_quark_functions: + if first: + first = False + else: + f.write(",\n") + f.write(" " + func) + f.write("\n};\n") - if os.name == 'nt': - ext = '.exe' + if self._compiler.compiler.exe_extension: + ext = self._compiler.compiler.exe_extension else: ext = '' bin_path = self._generate_tempfile(tmpdir, ext) try: - self._compile(o_path, c_path) + introspection_obj = self._compile(c_path) except CompilerError as e: if not utils.have_debug_flag('save-temps'): shutil.rmtree(tmpdir) raise SystemExit('compilation of temporary binary failed:' + str(e)) try: - self._link(bin_path, o_path) + self._link(bin_path, introspection_obj) except LinkerError as e: if not utils.have_debug_flag('save-temps'): shutil.rmtree(tmpdir) @@ -193,8 +184,8 @@ def _run_pkgconfig(self, flag): # Enable the --msvc-syntax pkg-config flag when # the Microsoft compiler is used - if self._pkgconfig_msvc_flags: - cmd = [self._pkgconfig_cmd, self._pkgconfig_msvc_flags, flag] + if self._compiler.check_is_msvc(): + cmd = [self._pkgconfig_cmd, '--msvc-syntax', flag] else: cmd = [self._pkgconfig_cmd, flag] proc = subprocess.Popen( @@ -202,134 +193,126 @@ stdout=subprocess.PIPE) return proc.communicate()[0].split() - def _compile(self, output, *sources): - # Not strictly speaking correct, but easier than parsing shell - args = self._compiler_cmd.split() - # Do not add -Wall when using init code as we do not include any - # header of the library being introspected - if self._compiler_cmd == 'gcc' and not self._options.init_sections: - args.append('-Wall') - # The Microsoft compiler uses different option flags for - # silencing warnings on deprecated function usage - if self._pkgconfig_msvc_flags: - args.append("-wd4996") - else: - args.append("-Wno-deprecated-declarations") + def _compile(self, *sources): pkgconfig_flags = self._run_pkgconfig('--cflags') - args.extend([utils.cflag_real_include_path(f) for f in pkgconfig_flags]) - cppflags = os.environ.get('CPPFLAGS', '') - for cppflag in cppflags.split(): - args.append(cppflag) - cflags = os.environ.get('CFLAGS', '') - for cflag in cflags.split(): - args.append(cflag) - for include in self._options.cpp_includes: - args.append('-I' + include) - # The Microsoft compiler uses different option flags for - # compilation result output - if self._pkgconfig_msvc_flags: - args.extend(['-c', '-Fe' + output, '-Fo' + output]) - else: - args.extend(['-c', '-o', output]) - for source in sources: - if not os.path.exists(source): - raise CompilerError( - "Could not find c source file: %s" % (source, )) - args.extend(list(sources)) - if not self._options.quiet: - print "g-ir-scanner: compile: %s" % ( - subprocess.list2cmdline(args), ) - sys.stdout.flush() - try: - subprocess.check_call(args) - except subprocess.CalledProcessError as e: - raise CompilerError(e) + return self._compiler.compile(pkgconfig_flags, + self._options.cpp_includes, + sources, + self._options.init_sections) - def _link(self, output, *sources): + def _link(self, output, sources): args = [] libtool = utils.get_libtool_command(self._options) if libtool: + # Note: MSVC Builds do not use libtool! + # In the libtool case, put together the linker command, as we did before. + # We aren't using distutils to link in this case. args.extend(libtool) args.append('--mode=link') args.append('--tag=CC') if self._options.quiet: args.append('--silent') - args.extend(self._linker_cmd.split()) - # We can use -o for the Microsoft compiler/linker, - # but it is considered deprecated usage with that - if self._pkgconfig_msvc_flags: - args.extend(['-Fe' + output]) - else: + args.extend(self._linker_cmd) + args.extend(['-o', output]) - if libtool: if os.name == 'nt': args.append('-Wl,--export-all-symbols') else: args.append('-export-dynamic') - cppflags = os.environ.get('CPPFLAGS', '') - for cppflag in cppflags.split(): - args.append(cppflag) - cflags = os.environ.get('CFLAGS', '') - for cflag in cflags.split(): - args.append(cflag) - ldflags = os.environ.get('LDFLAGS', '') - for ldflag in ldflags.split(): - args.append(ldflag) + if not self._compiler.check_is_msvc(): + # These envvars are not used for MSVC Builds! + # MSVC Builds use the INCLUDE, LIB envvars, + # which are automatically picked up during + # compilation and linking + cppflags = os.environ.get('CPPFLAGS', '') + for cppflag in cppflags.split(): + args.append(cppflag) + cflags = os.environ.get('CFLAGS', '') + for cflag in cflags.split(): + args.append(cflag) + ldflags = os.environ.get('LDFLAGS', '') + for ldflag in ldflags.split(): + args.append(ldflag) # Make sure to list the library to be introspected first since it's # likely to be uninstalled yet and we want the uninstalled RPATHs have # priority (or we might run with installed library that is older) - for source in sources: if not os.path.exists(source): raise CompilerError( "Could not find object file: %s" % (source, )) - args.extend(list(sources)) - cc = CCompiler() + if libtool: + args.extend(sources) + + pkg_config_libs = self._run_pkgconfig('--libs') if not self._options.external_library: - cc.get_internal_link_flags(args, - libtool, - self._options.libraries, - self._options.library_paths, - self._pkgconfig_msvc_flags, - self._options.namespace_name, - self._options.namespace_version) - args.extend(self._run_pkgconfig('--libs')) + self._compiler.get_internal_link_flags(args, + libtool, + self._options.libraries, + self._options.library_paths) + args.extend(pkg_config_libs) else: - args.extend(self._run_pkgconfig('--libs')) - cc.get_external_link_flags(args, - self._options.libraries, - self._pkgconfig_msvc_flags) - - if not self._options.quiet: - print "g-ir-scanner: link: %s" % ( - subprocess.list2cmdline(args), ) - sys.stdout.flush() - msys = os.environ.get('MSYSTEM', None) - if msys: - shell = os.environ.get('SHELL', 'sh.exe') - # Create a temporary script file that - # runs the command we want - tf, tf_name = tempfile.mkstemp() - f = os.fdopen(tf, 'wb') - shellcontents = ' '.join([x.replace('\\', '/') for x in args]) - fcontents = '#!/bin/sh\nunset PWD\n{}\n'.format(shellcontents) - f.write(fcontents) - f.close() - shell = utils.which(shell) - args = [shell, tf_name.replace('\\', '/')] - try: - subprocess.check_call(args) - except subprocess.CalledProcessError as e: - raise LinkerError(e) - finally: + args.extend(pkg_config_libs) + self._compiler.get_external_link_flags(args, + libtool, + self._options.libraries) + + if not libtool: + # non-libtool: prepare distutils for linking the introspection + # dumper program... + try: + self._compiler.link(output, + sources, + args) + + # Ignore failing to embed the manifest files, when the manifest + # file does not exist, especially for MSVC 2010 and later builds. + # If we are on Visual C++ 2005/2008, where + # this embedding is required, the build will fail anyway, as + # the dumper program will likely fail to run, and this means + # something went wrong with the build. + except LinkError, e: + if self._compiler.check_is_msvc(): + msg = str(e) + + if msg[msg.rfind('mt.exe'):] == 'mt.exe\' failed with exit status 31': + sys.exc_clear() + pass + else: + raise LinkError(e) + else: + raise LinkError(e) + else: + # libtool: Run the assembled link command, we don't use distutils + # for linking here. + if not self._options.quiet: + print "g-ir-scanner: link: %s" % ( + subprocess.list2cmdline(args), ) + sys.stdout.flush() + msys = os.environ.get('MSYSTEM', None) if msys: - os.remove(tf_name) + shell = os.environ.get('SHELL', 'sh.exe') + # Create a temporary script file that + # runs the command we want + tf, tf_name = tempfile.mkstemp() + with os.fdopen(tf, 'wb') as f: + shellcontents = ' '.join([x.replace('\\', '/') for x in args]) + fcontents = '#!/bin/sh\nunset PWD\n{}\n'.format(shellcontents) + f.write(fcontents) + shell = utils.which(shell) + args = [shell, tf_name.replace('\\', '/')] + try: + subprocess.check_call(args) + except subprocess.CalledProcessError as e: + raise LinkerError(e) + finally: + if msys: + os.remove(tf_name) def compile_introspection_binary(options, get_type_functions, diff -Nru gobject-introspection-1.45.3/giscanner/gdumpparser.py gobject-introspection-1.46.0/giscanner/gdumpparser.py --- gobject-introspection-1.45.3/giscanner/gdumpparser.py 2015-07-03 11:46:48.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/gdumpparser.py 2015-08-21 12:03:01.000000000 +0000 @@ -145,16 +145,15 @@ """Load the library (or executable), returning an XML blob containing data gleaned from GObject's primitive introspection.""" in_path = os.path.join(self._binary.tmpdir, 'functions.txt') - f = open(in_path, 'w') - for func in self._get_type_functions: - f.write('get-type:') - f.write(func) - f.write('\n') - for func in self._error_quark_functions: - f.write('error-quark:') - f.write(func) - f.write('\n') - f.close() + with open(in_path, 'w') as f: + for func in self._get_type_functions: + f.write('get-type:') + f.write(func) + f.write('\n') + for func in self._error_quark_functions: + f.write('error-quark:') + f.write(func) + f.write('\n') out_path = os.path.join(self._binary.tmpdir, 'dump.xml') args = [] diff -Nru gobject-introspection-1.45.3/giscanner/msvccompiler.py gobject-introspection-1.46.0/giscanner/msvccompiler.py --- gobject-introspection-1.45.3/giscanner/msvccompiler.py 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/msvccompiler.py 2015-07-30 10:32:27.000000000 +0000 @@ -0,0 +1,101 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2014 Chun-wei Fan +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# 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. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. +# + +import os +import distutils + +from distutils.errors import (DistutilsExecError, CompileError, LibError, + LinkError, UnknownFileError) +from distutils.ccompiler import CCompiler, gen_preprocess_options +from distutils.dep_util import newer + +# Distutil's MSVCCompiler does not provide a preprocess() +# Implementation, so do our own here. + + +def get_msvc_compiler(): + return MSVCCompiler() + + +class MSVCCompiler(distutils.msvccompiler.MSVCCompiler): + + def __init__(self, verbose=0, dry_run=0, force=0): + CCompiler.__init__(self, verbose, dry_run, force) + self.__paths = [] + self.__arch = None # deprecated name + if os.name == 'nt': + if isinstance(self, distutils.msvc9compiler.MSVCCompiler): + self.__version = distutils.msvc9compiler.VERSION + self.initialized = False + self.preprocess_options = None + + def preprocess(self, + source, + output_file=None, + macros=None, + include_dirs=None, + extra_preargs=None, + extra_postargs=None): + if self.initialized is False: + self.initialize() + + (_, macros, include_dirs) = \ + self._fix_compile_args(None, macros, include_dirs) + pp_opts = gen_preprocess_options(macros, include_dirs) + preprocess_options = ['-E'] + source_basename = None + + if output_file is not None: + preprocess_options.append('-P') + source_basename = self._get_file_basename(source) + cpp_args = self.cc.split() + if extra_preargs is not None: + cpp_args[:0] = extra_preargs + if extra_postargs is not None: + preprocess_options.extend(extra_postargs) + cpp_args.extend(preprocess_options) + cpp_args.extend(pp_opts) + cpp_args.append(source) + + # We need to preprocess: either we're being forced to, or the + # source file is newer than the target (or the target doesn't + # exist). + if self.force or output_file is None or newer(source, output_file): + try: + self.spawn(cpp_args) + except DistutilsExecError, msg: + print msg + raise CompileError + + # The /P option for the MSVC preprocessor will output the results + # of the preprocessor to a file, as .i, + # so in order to output the specified filename, we need to rename + # that file + if output_file is not None: + if output_file != source_basename + '.i': + os.rename(source_basename + '.i', output_file) + + def _get_file_basename(self, filename): + if filename is None: + return None + if filename.rfind('.') == -1: + return filename[filename.rfind('\\') + 1:] + else: + return filename[filename.rfind('\\') + 1:filename.rfind('.')] diff -Nru gobject-introspection-1.45.3/giscanner/scannerlexer.l gobject-introspection-1.46.0/giscanner/scannerlexer.l --- gobject-introspection-1.45.3/giscanner/scannerlexer.l 2015-03-24 00:50:04.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/scannerlexer.l 2015-07-30 10:32:27.000000000 +0000 @@ -165,6 +165,7 @@ "__inline" { return INLINE; } "__nonnull" { if (!parse_ignored_macro()) REJECT; } "_Noreturn" { /* Ignore */ } +"__signed" { return SIGNED; } "__signed__" { return SIGNED; } "__restrict" { return RESTRICT; } "__restrict__" { return RESTRICT; } diff -Nru gobject-introspection-1.45.3/giscanner/scannermain.py gobject-introspection-1.46.0/giscanner/scannermain.py --- gobject-introspection-1.45.3/giscanner/scannermain.py 2015-07-03 11:46:48.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/scannermain.py 2015-09-09 10:14:35.000000000 +0000 @@ -322,8 +322,8 @@ filenames = [] if not os.path.exists(options.filelist): _error('%s: no such filelist file' % (options.filelist, )) - filelist_file = open(options.filelist, "r") - lines = filelist_file.readlines() + with open(options.filelist, "r") as filelist_file: + lines = filelist_file.readlines() for line in lines: # We don't support real C++ parsing yet, but we should be able # to understand C API implemented in C++ files. @@ -443,14 +443,12 @@ output = sys.stdout elif options.reparse_validate_gir: main_f, main_f_name = tempfile.mkstemp(suffix='.gir') - main_f = os.fdopen(main_f, 'w') - main_f.write(data) - main_f.close() + with os.fdopen(main_f, 'w') as main_f: + main_f.write(data) temp_f, temp_f_name = tempfile.mkstemp(suffix='.gir') - temp_f = os.fdopen(temp_f, 'w') - passthrough_gir(main_f_name, temp_f) - temp_f.close() + with os.fdopen(temp_f, 'w') as temp_f: + passthrough_gir(main_f_name, temp_f) if not utils.files_are_identical(main_f_name, temp_f_name): _error("Failed to re-parse gir file; scanned=%r passthrough=%r" % ( main_f_name, temp_f_name)) diff -Nru gobject-introspection-1.45.3/giscanner/sourcescanner.py gobject-introspection-1.46.0/giscanner/sourcescanner.py --- gobject-introspection-1.45.3/giscanner/sourcescanner.py 2015-07-03 11:46:48.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/sourcescanner.py 2015-07-30 10:32:27.000000000 +0000 @@ -25,6 +25,7 @@ from .libtoolimporter import LibtoolImporter from .message import Position +from .ccompiler import CCompiler with LibtoolImporter(None, None): if 'UNINSTALLED_INTROSPECTION_SRCDIR' in os.environ: @@ -281,57 +282,38 @@ defines = ['__GI_SCANNER__'] undefs = [] - cpp_args = os.environ.get('CC', 'cc').split() # support CC="ccache gcc" - if 'cl' in cpp_args: - # The Microsoft compiler/preprocessor (cl) does not accept - # source input from stdin (the '-' flag), so we need - # some help from gcc from MinGW/Cygwin or so. - # Note that the generated dumper program is - # still built and linked by Visual C++. - cpp_args = ['gcc'] - cpp_args += os.environ.get('CPPFLAGS', '').split() - cpp_args += os.environ.get('CFLAGS', '').split() - cpp_args += ['-E', '-C', '-I.', '-'] - cpp_args += self._cpp_options - - # We expect the preprocessor to remove macros. If debugging is turned - # up high enough that won't happen, so strip these out. Bug #720504 - for flag in ['-g3', '-ggdb3', '-gstabs3', '-gcoff3', '-gxcoff3', '-gvms3']: - try: - cpp_args.remove(flag) - except ValueError: - pass - - proc = subprocess.Popen(cpp_args, - stdin=subprocess.PIPE, - stdout=subprocess.PIPE) - for define in defines: - proc.stdin.write('#ifndef %s\n' % (define, )) - proc.stdin.write('# define %s\n' % (define, )) - proc.stdin.write('#endif\n') - for undef in undefs: - proc.stdin.write('#undef %s\n' % (undef, )) - for filename in filenames: - proc.stdin.write('#include <%s>\n' % (filename, )) - proc.stdin.close() + cc = CCompiler() + + tmp_fd_cpp, tmp_name_cpp = tempfile.mkstemp(prefix='g-ir-cpp-', suffix='.c') + fp_cpp = os.fdopen(tmp_fd_cpp, 'w') + self._write_preprocess_src(fp_cpp, defines, undefs, filenames) + fp_cpp.close() + + tmpfile_basename = os.path.basename(os.path.splitext(tmp_name_cpp)[0]) + + # Output file name of the preprocessor, only really used on non-MSVC, + # so we want the name to match the output file name of the MSVC preprocessor + tmpfile_output = tmpfile_basename + '.i' - tmp_fd, tmp_name = tempfile.mkstemp() - fp = os.fdopen(tmp_fd, 'w+b') - while True: - data = proc.stdout.read(4096) - if data is None: - break - fp.write(data) - if len(data) < 4096: - break - fp.seek(0, 0) - - assert proc, 'Proc was none' - proc.wait() - if proc.returncode != 0: - raise SystemExit('Error while processing the source.') + cc.preprocess(tmp_name_cpp, + tmpfile_output, + self._cpp_options) + + os.unlink(tmp_name_cpp) + fp = open(tmpfile_output, 'r') self._scanner.parse_file(fp.fileno()) fp.close() - os.unlink(tmp_name) + os.unlink(tmpfile_output) + + def _write_preprocess_src(self, fp, defines, undefs, filenames): + # Write to the temp file for feeding into the preprocessor + for define in defines: + fp.write('#ifndef %s\n' % (define, )) + fp.write('# define %s\n' % (define, )) + fp.write('#endif\n') + for undef in undefs: + fp.write('#undef %s\n' % (undef, )) + for filename in filenames: + fp.write('#include <%s>\n' % (filename, )) diff -Nru gobject-introspection-1.45.3/giscanner/utils.py gobject-introspection-1.46.0/giscanner/utils.py --- gobject-introspection-1.45.3/giscanner/utils.py 2015-06-22 17:07:46.000000000 +0000 +++ gobject-introspection-1.46.0/giscanner/utils.py 2015-08-21 12:03:01.000000000 +0000 @@ -80,9 +80,8 @@ def _extract_dlname_field(la_file): - f = open(la_file) - data = f.read() - f.close() + with open(la_file) as f: + data = f.read() m = _libtool_pat.search(data) if m: return m.groups()[0] @@ -94,9 +93,8 @@ def _extract_libdir_field(la_file): - f = open(la_file) - data = f.read() - f.close() + with open(la_file) as f: + data = f.read() m = _libtool_libdir_pat.search(data) if m: return m.groups()[0] @@ -166,16 +164,13 @@ def files_are_identical(path1, path2): - f1 = open(path1) - f2 = open(path2) - buf1 = f1.read(8192) - buf2 = f2.read(8192) - while buf1 == buf2 and buf1 != '': + with open(path1) as f1, open(path2) as f2: buf1 = f1.read(8192) buf2 = f2.read(8192) - f1.close() - f2.close() - return buf1 == buf2 + while buf1 == buf2 and buf1 != '': + buf1 = f1.read(8192) + buf2 = f2.read(8192) + return buf1 == buf2 def cflag_real_include_path(cflag): diff -Nru gobject-introspection-1.45.3/gobject-introspection-1.0.pc gobject-introspection-1.46.0/gobject-introspection-1.0.pc --- gobject-introspection-1.45.3/gobject-introspection-1.0.pc 2015-07-03 20:30:38.000000000 +0000 +++ gobject-introspection-1.46.0/gobject-introspection-1.0.pc 2015-09-22 11:24:42.000000000 +0000 @@ -1,4 +1,4 @@ -prefix=/home/fmuellner/opt/gnome +prefix=/home/ebassi/gnome/install exec_prefix=${prefix} libdir=${exec_prefix}/lib bindir=${exec_prefix}/bin @@ -21,4 +21,4 @@ Name: gobject-introspection Description: GObject Introspection -Version: 1.45.3 +Version: 1.46.0 diff -Nru gobject-introspection-1.45.3/gobject-introspection-no-export-1.0.pc gobject-introspection-1.46.0/gobject-introspection-no-export-1.0.pc --- gobject-introspection-1.45.3/gobject-introspection-no-export-1.0.pc 2015-07-03 20:30:38.000000000 +0000 +++ gobject-introspection-1.46.0/gobject-introspection-no-export-1.0.pc 2015-09-22 11:24:42.000000000 +0000 @@ -1,4 +1,4 @@ -prefix=/home/fmuellner/opt/gnome +prefix=/home/ebassi/gnome/install exec_prefix=${prefix} libdir=${exec_prefix}/lib bindir=${exec_prefix}/bin @@ -20,4 +20,4 @@ Name: gobject-introspection Description: GObject Introspection -Version: 1.45.3 +Version: 1.46.0 diff -Nru gobject-introspection-1.45.3/gtk-doc.make gobject-introspection-1.46.0/gtk-doc.make --- gobject-introspection-1.45.3/gtk-doc.make 2015-07-03 11:38:49.000000000 +0000 +++ gobject-introspection-1.46.0/gtk-doc.make 2015-09-21 23:52:39.000000000 +0000 @@ -142,7 +142,7 @@ GTK_DOC_V_XML_=$(GTK_DOC_V_XML_$(AM_DEFAULT_VERBOSITY)) GTK_DOC_V_XML_0=@echo " DOC Building XML"; -sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) +sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent $(GTK_DOC_V_XML)_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ @@ -153,6 +153,17 @@ sgml.stamp: sgml-build.stamp @true +xml/gtkdocentities.ent: Makefile + $(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + ) > $@ + #### html #### GTK_DOC_V_HTML=$(GTK_DOC_V_HTML_$(V)) diff -Nru gobject-introspection-1.45.3/Makefile-giscanner.am gobject-introspection-1.46.0/Makefile-giscanner.am --- gobject-introspection-1.45.3/Makefile-giscanner.am 2014-08-26 09:29:24.000000000 +0000 +++ gobject-introspection-1.46.0/Makefile-giscanner.am 2015-07-30 10:32:27.000000000 +0000 @@ -43,6 +43,7 @@ giscanner/libtoolimporter.py \ giscanner/maintransformer.py \ giscanner/message.py \ + giscanner/msvccompiler.py \ giscanner/shlibs.py \ giscanner/scannermain.py \ giscanner/sectionparser.py \ diff -Nru gobject-introspection-1.45.3/Makefile.in gobject-introspection-1.46.0/Makefile.in --- gobject-introspection-1.45.3/Makefile.in 2015-07-03 20:30:32.000000000 +0000 +++ gobject-introspection-1.46.0/Makefile.in 2015-09-22 11:24:38.000000000 +0000 @@ -1194,6 +1194,7 @@ giscanner/libtoolimporter.py \ giscanner/maintransformer.py \ giscanner/message.py \ + giscanner/msvccompiler.py \ giscanner/shlibs.py \ giscanner/scannermain.py \ giscanner/sectionparser.py \ diff -Nru gobject-introspection-1.45.3/scannerlexer.c gobject-introspection-1.46.0/scannerlexer.c --- gobject-introspection-1.45.3/scannerlexer.c 2015-03-24 00:50:26.000000000 +0000 +++ gobject-introspection-1.46.0/scannerlexer.c 2015-09-22 11:24:47.000000000 +0000 @@ -360,8 +360,8 @@ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 156 -#define YY_END_OF_BUFFER 157 +#define YY_NUM_RULES 157 +#define YY_END_OF_BUFFER 158 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -369,115 +369,115 @@ flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_acclist[978] = +static yyconst flex_int16_t yy_acclist[979] = { 0, - 157, 155, 156, 3, 155, 156, 1, 156, 45, 155, - 156, 155, 156, 20, 155, 156, 40, 155, 156, 42, - 155, 156, 155, 156, 29, 155, 156, 30, 155, 156, - 38, 155, 156, 36, 155, 156, 69, 155, 156, 37, - 155, 156, 35, 155, 156, 39, 155, 156, 148, 155, - 156, 148, 155, 156, 32, 155, 156, 31, 155, 156, - 47, 155, 156, 46, 155, 156, 48, 155, 156, 34, - 155, 156, 104, 145, 155, 156, 104, 145, 155, 156, - 104, 145, 155, 156, 104, 145, 155, 156, 104, 145, - 155, 156, 25, 155, 156, 155, 156, 27, 155, 156, - - 41, 155, 156, 104, 145, 155, 156, 104, 145, 155, - 156, 104, 145, 155, 156, 104, 145, 155, 156, 104, - 145, 155, 156, 104, 145, 155, 156, 104, 145, 155, - 156, 104, 145, 155, 156, 104, 145, 155, 156, 104, - 145, 155, 156, 104, 145, 155, 156, 104, 145, 155, - 156, 104, 145, 155, 156, 104, 145, 155, 156, 104, - 145, 155, 156, 104, 145, 155, 156, 21, 155, 156, - 43, 155, 156, 23, 155, 156, 44, 155, 156, 3, - 1, 62, 153, 53, 24, 65, 55, 151, 51, 67, - 49, 68, 50, 70, 149, 4, 6, 52, 149, 147, - - 148, 148, 148, 148, 28, 22, 26, 57, 63, 61, - 64, 58, 104, 145, 104, 145, 104, 145, 104, 145, - 2, 54, 104, 145, 104, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 114, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 122, 145, 104, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 56, 66, - 33, 149, 6, 147, 148, 147, 148, 150, 148, 148, - - 148, 146, 59, 60, 104, 145, 104, 145, 154, 152, - 104, 145, 104, 145, 104, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 104, 145, - 104, 105, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 120, 145, 104, 145, 104, 145, 104, 124, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 149, 147, 148, 147, 148, 147, 148, - 150, 148, 146, 146, 104, 145, 104, 145, 104, 145, - 100, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 106, 145, - 104, 107, 145, 104, 145, 104, 109, 145, 104, 110, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 116, 145, 104, 117, 145, 104, 145, 104, 145, 104, - - 145, 104, 121, 145, 104, 145, 104, 129, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 102, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 142, 145, 104, - 145, 104, 145, 18, 13, 147, 148, 146, 146, 146, - 101, 104, 145, 104, 145, 104, 145, 90, 104, 145, - 104, 145, 74, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 96, 104, 145, 104, 108, 145, 104, - - 111, 145, 104, 145, 104, 145, 104, 145, 104, 145, - 103, 104, 145, 104, 119, 145, 104, 145, 104, 145, - 104, 145, 104, 145, 104, 133, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 140, 145, 104, 145, 104, 145, 104, 144, 145, 15, - 146, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 115, 145, 104, 118, 145, 104, - - 123, 145, 104, 145, 104, 145, 104, 132, 145, 104, - 134, 145, 104, 135, 145, 104, 136, 145, 104, 137, - 145, 104, 138, 145, 104, 145, 104, 145, 104, 145, - 14, 16, 5, 104, 145, 104, 145, 104, 145, 75, - 104, 145, 104, 145, 92, 104, 145, 78, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 97, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 113, 145, - 104, 145, 104, 145, 104, 139, 145, 104, 145, 104, - 145, 12, 104, 145, 104, 145, 104, 145, 104, 145, - - 104, 145, 104, 145, 81, 104, 145, 104, 128, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 87, 104, - 145, 104, 145, 104, 145, 104, 112, 145, 104, 130, - 145, 104, 131, 145, 104, 141, 145, 104, 143, 145, - 8, 11, 19, 17, 104, 145, 104, 145, 83, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 104, - 145, 82, 104, 145, 104, 145, 104, 145, 95, 104, - 145, 104, 127, 145, 104, 145, 7, 8, 104, 145, - 104, 145, 104, 145, 104, 145, 104, 145, 80, 104, - 145, 104, 126, 145, 85, 104, 145, 84, 104, 145, - - 104, 145, 88, 104, 145, 104, 145, 104, 145, 77, - 104, 145, 104, 145, 104, 145, 104, 125, 145, 104, - 145, 104, 145, 104, 145, 104, 145, 104, 145, 86, - 104, 145, 89, 104, 145, 104, 145, 104, 145, 76, - 104, 145, 94, 79, 104, 145, 104, 145, 104, 145, - 71, 104, 145, 104, 145, 104, 145, 104, 145, 72, - 98, 104, 145, 104, 145, 99, 104, 145, 73, 9, - 9, 12, 10, 10, 11, 93, 91 + 158, 156, 157, 3, 156, 157, 1, 157, 45, 156, + 157, 156, 157, 20, 156, 157, 40, 156, 157, 42, + 156, 157, 156, 157, 29, 156, 157, 30, 156, 157, + 38, 156, 157, 36, 156, 157, 69, 156, 157, 37, + 156, 157, 35, 156, 157, 39, 156, 157, 149, 156, + 157, 149, 156, 157, 32, 156, 157, 31, 156, 157, + 47, 156, 157, 46, 156, 157, 48, 156, 157, 34, + 156, 157, 105, 146, 156, 157, 105, 146, 156, 157, + 105, 146, 156, 157, 105, 146, 156, 157, 105, 146, + 156, 157, 25, 156, 157, 156, 157, 27, 156, 157, + + 41, 156, 157, 105, 146, 156, 157, 105, 146, 156, + 157, 105, 146, 156, 157, 105, 146, 156, 157, 105, + 146, 156, 157, 105, 146, 156, 157, 105, 146, 156, + 157, 105, 146, 156, 157, 105, 146, 156, 157, 105, + 146, 156, 157, 105, 146, 156, 157, 105, 146, 156, + 157, 105, 146, 156, 157, 105, 146, 156, 157, 105, + 146, 156, 157, 105, 146, 156, 157, 21, 156, 157, + 43, 156, 157, 23, 156, 157, 44, 156, 157, 3, + 1, 62, 154, 53, 24, 65, 55, 152, 51, 67, + 49, 68, 50, 70, 150, 4, 6, 52, 150, 148, + + 149, 149, 149, 149, 28, 22, 26, 57, 63, 61, + 64, 58, 105, 146, 105, 146, 105, 146, 105, 146, + 2, 54, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 115, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 123, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 56, 66, + 33, 150, 6, 148, 149, 148, 149, 151, 149, 149, + + 149, 147, 59, 60, 105, 146, 105, 146, 155, 153, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 106, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 121, 146, 105, 146, 105, 146, 105, 125, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 150, 148, 149, 148, 149, 148, 149, + 151, 149, 147, 147, 105, 146, 105, 146, 105, 146, + 101, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 107, 146, + 105, 108, 146, 105, 146, 105, 110, 146, 105, 111, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 117, 146, 105, 118, 146, 105, 146, 105, 146, 105, + + 146, 105, 122, 146, 105, 146, 105, 130, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 103, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 143, 146, 105, + 146, 105, 146, 18, 13, 148, 149, 147, 147, 147, + 102, 105, 146, 105, 146, 105, 146, 91, 105, 146, + 105, 146, 74, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 97, 105, 146, 105, 109, 146, 105, + + 112, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 104, 105, 146, 105, 120, 146, 105, 146, 105, 146, + 105, 146, 105, 146, 105, 134, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 141, 146, 105, 146, 105, 146, 105, 145, 146, 15, + 147, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 116, 146, 105, 119, 146, 105, + + 124, 146, 105, 146, 105, 146, 105, 133, 146, 105, + 135, 146, 105, 136, 146, 105, 137, 146, 105, 138, + 146, 105, 139, 146, 105, 146, 105, 146, 105, 146, + 14, 16, 5, 105, 146, 105, 146, 105, 146, 75, + 105, 146, 105, 146, 93, 105, 146, 78, 105, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 98, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 114, 146, + 105, 146, 105, 146, 105, 140, 146, 105, 146, 105, + 146, 12, 105, 146, 105, 146, 105, 146, 105, 146, + + 105, 146, 105, 146, 81, 105, 146, 105, 129, 146, + 105, 146, 105, 146, 84, 105, 146, 105, 146, 88, + 105, 146, 105, 146, 105, 146, 105, 113, 146, 105, + 131, 146, 105, 132, 146, 105, 142, 146, 105, 144, + 146, 8, 11, 19, 17, 105, 146, 105, 146, 83, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 105, 146, 82, 105, 146, 105, 146, 105, 146, 96, + 105, 146, 105, 128, 146, 105, 146, 7, 8, 105, + 146, 105, 146, 105, 146, 105, 146, 105, 146, 80, + 105, 146, 105, 127, 146, 86, 105, 146, 85, 105, + + 146, 105, 146, 89, 105, 146, 105, 146, 105, 146, + 77, 105, 146, 105, 146, 105, 146, 105, 126, 146, + 105, 146, 105, 146, 105, 146, 105, 146, 105, 146, + 87, 105, 146, 90, 105, 146, 105, 146, 105, 146, + 76, 105, 146, 95, 79, 105, 146, 105, 146, 105, + 146, 71, 105, 146, 105, 146, 105, 146, 105, 146, + 72, 99, 105, 146, 105, 146, 100, 105, 146, 73, + 9, 9, 12, 10, 10, 11, 94, 92 } ; static yyconst flex_int16_t yy_accept[678] = @@ -532,30 +532,30 @@ 757, 759, 762, 764, 766, 768, 770, 772, 774, 776, 778, 781, 783, 785, 788, 790, 792, 792, 792, 792, 792, 793, 793, 793, 793, 793, 793, 795, 797, 799, - 799, 799, 801, 803, 805, 808, 811, 813, 815, 817, - 819, 822, 824, 826, 829, 832, 835, 835, 838, 841, - 842, 842, 842, 842, 842, 842, 843, 843, 843, 844, - 844, 845, 847, 849, 852, 852, 852, 852, 854, 856, - - 858, 860, 862, 865, 867, 869, 872, 875, 877, 877, - 878, 879, 879, 879, 879, 879, 881, 883, 883, 883, - 883, 885, 887, 889, 892, 895, 898, 901, 903, 906, - 906, 906, 906, 906, 906, 908, 910, 910, 910, 910, - 913, 913, 913, 915, 917, 920, 922, 922, 922, 922, - 922, 922, 924, 926, 926, 926, 926, 928, 928, 928, - 928, 930, 933, 936, 936, 936, 936, 936, 936, 938, - 940, 940, 940, 940, 943, 944, 944, 947, 947, 947, - 947, 947, 947, 949, 951, 952, 952, 952, 952, 952, - 952, 952, 952, 952, 954, 956, 956, 956, 956, 956, - - 956, 956, 956, 956, 958, 960, 960, 961, 961, 961, - 961, 961, 961, 961, 964, 966, 966, 966, 966, 966, - 966, 966, 966, 969, 969, 969, 969, 969, 969, 969, - 969, 969, 969, 969, 969, 969, 969, 969, 970, 970, - 970, 970, 970, 970, 970, 970, 970, 970, 970, 971, - 971, 971, 973, 973, 973, 973, 973, 973, 973, 974, - 974, 974, 976, 976, 976, 976, 977, 977, 977, 977, - 977, 977, 977, 977, 977, 978, 978 + 799, 799, 801, 803, 805, 808, 811, 813, 815, 818, + 820, 823, 825, 827, 830, 833, 836, 836, 839, 842, + 843, 843, 843, 843, 843, 843, 844, 844, 844, 845, + 845, 846, 848, 850, 853, 853, 853, 853, 855, 857, + + 859, 861, 863, 866, 868, 870, 873, 876, 878, 878, + 879, 880, 880, 880, 880, 880, 882, 884, 884, 884, + 884, 886, 888, 890, 893, 896, 899, 902, 904, 907, + 907, 907, 907, 907, 907, 909, 911, 911, 911, 911, + 914, 914, 914, 916, 918, 921, 923, 923, 923, 923, + 923, 923, 925, 927, 927, 927, 927, 929, 929, 929, + 929, 931, 934, 937, 937, 937, 937, 937, 937, 939, + 941, 941, 941, 941, 944, 945, 945, 948, 948, 948, + 948, 948, 948, 950, 952, 953, 953, 953, 953, 953, + 953, 953, 953, 953, 955, 957, 957, 957, 957, 957, + + 957, 957, 957, 957, 959, 961, 961, 962, 962, 962, + 962, 962, 962, 962, 965, 967, 967, 967, 967, 967, + 967, 967, 967, 970, 970, 970, 970, 970, 970, 970, + 970, 970, 970, 970, 970, 970, 970, 970, 971, 971, + 971, 971, 971, 971, 971, 971, 971, 971, 971, 972, + 972, 972, 974, 974, 974, 974, 974, 974, 974, 975, + 975, 975, 977, 977, 977, 977, 978, 978, 978, 978, + 978, 978, 978, 978, 978, 979, 979 } ; static yyconst flex_int32_t yy_ec[256] = @@ -1846,7 +1846,7 @@ case 85: YY_RULE_SETUP #line 169 "giscanner/scannerlexer.l" -{ return RESTRICT; } +{ return SIGNED; } YY_BREAK case 86: YY_RULE_SETUP @@ -1856,12 +1856,12 @@ case 87: YY_RULE_SETUP #line 171 "giscanner/scannerlexer.l" -{ if (!parse_ignored_macro()) REJECT; } +{ return RESTRICT; } YY_BREAK case 88: YY_RULE_SETUP #line 172 "giscanner/scannerlexer.l" -{ return VOLATILE; } +{ if (!parse_ignored_macro()) REJECT; } YY_BREAK case 89: YY_RULE_SETUP @@ -1871,15 +1871,15 @@ case 90: YY_RULE_SETUP #line 174 "giscanner/scannerlexer.l" -{ return BOOL; } +{ return VOLATILE; } YY_BREAK case 91: -/* rule 91 can match eol */ YY_RULE_SETUP #line 175 "giscanner/scannerlexer.l" -{ /* Ignore */ } +{ return BOOL; } YY_BREAK case 92: +/* rule 92 can match eol */ YY_RULE_SETUP #line 176 "giscanner/scannerlexer.l" { /* Ignore */ } @@ -1897,7 +1897,7 @@ case 95: YY_RULE_SETUP #line 179 "giscanner/scannerlexer.l" -{ /* ignore */ } +{ /* Ignore */ } YY_BREAK case 96: YY_RULE_SETUP @@ -1907,22 +1907,22 @@ case 97: YY_RULE_SETUP #line 181 "giscanner/scannerlexer.l" -{ return INT; } +{ /* ignore */ } YY_BREAK case 98: YY_RULE_SETUP -#line 184 "giscanner/scannerlexer.l" -{ return INTL_CONST; } +#line 182 "giscanner/scannerlexer.l" +{ return INT; } YY_BREAK case 99: YY_RULE_SETUP #line 185 "giscanner/scannerlexer.l" -{ return INTUL_CONST; } +{ return INTL_CONST; } YY_BREAK case 100: YY_RULE_SETUP -#line 187 "giscanner/scannerlexer.l" -{ return BOOLEAN; } +#line 186 "giscanner/scannerlexer.l" +{ return INTUL_CONST; } YY_BREAK case 101: YY_RULE_SETUP @@ -1941,108 +1941,108 @@ YY_BREAK case 104: YY_RULE_SETUP -#line 192 "giscanner/scannerlexer.l" -{ if (scanner->macro_scan) return check_identifier(scanner, yytext); else REJECT; } +#line 191 "giscanner/scannerlexer.l" +{ return BOOLEAN; } YY_BREAK case 105: YY_RULE_SETUP -#line 194 "giscanner/scannerlexer.l" -{ if (!parse_ignored_macro()) REJECT; } +#line 193 "giscanner/scannerlexer.l" +{ if (scanner->macro_scan) return check_identifier(scanner, yytext); else REJECT; } YY_BREAK case 106: YY_RULE_SETUP #line 195 "giscanner/scannerlexer.l" -{ return AUTO; } +{ if (!parse_ignored_macro()) REJECT; } YY_BREAK case 107: YY_RULE_SETUP #line 196 "giscanner/scannerlexer.l" -{ return BOOL; } +{ return AUTO; } YY_BREAK case 108: YY_RULE_SETUP #line 197 "giscanner/scannerlexer.l" -{ return BREAK; } +{ return BOOL; } YY_BREAK case 109: YY_RULE_SETUP #line 198 "giscanner/scannerlexer.l" -{ return CASE; } +{ return BREAK; } YY_BREAK case 110: YY_RULE_SETUP #line 199 "giscanner/scannerlexer.l" -{ return CHAR; } +{ return CASE; } YY_BREAK case 111: YY_RULE_SETUP #line 200 "giscanner/scannerlexer.l" -{ return CONST; } +{ return CHAR; } YY_BREAK case 112: YY_RULE_SETUP #line 201 "giscanner/scannerlexer.l" -{ return CONTINUE; } +{ return CONST; } YY_BREAK case 113: YY_RULE_SETUP #line 202 "giscanner/scannerlexer.l" -{ return DEFAULT; } +{ return CONTINUE; } YY_BREAK case 114: YY_RULE_SETUP #line 203 "giscanner/scannerlexer.l" -{ return DO; } +{ return DEFAULT; } YY_BREAK case 115: YY_RULE_SETUP #line 204 "giscanner/scannerlexer.l" -{ return DOUBLE; } +{ return DO; } YY_BREAK case 116: YY_RULE_SETUP #line 205 "giscanner/scannerlexer.l" -{ return ELSE; } +{ return DOUBLE; } YY_BREAK case 117: YY_RULE_SETUP #line 206 "giscanner/scannerlexer.l" -{ return ENUM; } +{ return ELSE; } YY_BREAK case 118: YY_RULE_SETUP #line 207 "giscanner/scannerlexer.l" -{ return EXTERN; } +{ return ENUM; } YY_BREAK case 119: YY_RULE_SETUP #line 208 "giscanner/scannerlexer.l" -{ return FLOAT; } +{ return EXTERN; } YY_BREAK case 120: YY_RULE_SETUP #line 209 "giscanner/scannerlexer.l" -{ return FOR; } +{ return FLOAT; } YY_BREAK case 121: YY_RULE_SETUP #line 210 "giscanner/scannerlexer.l" -{ return GOTO; } +{ return FOR; } YY_BREAK case 122: YY_RULE_SETUP #line 211 "giscanner/scannerlexer.l" -{ return IF; } +{ return GOTO; } YY_BREAK case 123: YY_RULE_SETUP #line 212 "giscanner/scannerlexer.l" -{ return INLINE; } +{ return IF; } YY_BREAK case 124: YY_RULE_SETUP #line 213 "giscanner/scannerlexer.l" -{ return INT; } +{ return INLINE; } YY_BREAK case 125: YY_RULE_SETUP @@ -2067,92 +2067,92 @@ case 129: YY_RULE_SETUP #line 218 "giscanner/scannerlexer.l" -{ return LONG; } +{ return INT; } YY_BREAK case 130: YY_RULE_SETUP #line 219 "giscanner/scannerlexer.l" -{ return REGISTER; } +{ return LONG; } YY_BREAK case 131: YY_RULE_SETUP #line 220 "giscanner/scannerlexer.l" -{ return RESTRICT; } +{ return REGISTER; } YY_BREAK case 132: YY_RULE_SETUP #line 221 "giscanner/scannerlexer.l" -{ return RETURN; } +{ return RESTRICT; } YY_BREAK case 133: YY_RULE_SETUP #line 222 "giscanner/scannerlexer.l" -{ return SHORT; } +{ return RETURN; } YY_BREAK case 134: YY_RULE_SETUP #line 223 "giscanner/scannerlexer.l" -{ return SIGNED; } +{ return SHORT; } YY_BREAK case 135: YY_RULE_SETUP #line 224 "giscanner/scannerlexer.l" -{ return SIZEOF; } +{ return SIGNED; } YY_BREAK case 136: YY_RULE_SETUP #line 225 "giscanner/scannerlexer.l" -{ return STATIC; } +{ return SIZEOF; } YY_BREAK case 137: YY_RULE_SETUP #line 226 "giscanner/scannerlexer.l" -{ return STRUCT; } +{ return STATIC; } YY_BREAK case 138: YY_RULE_SETUP #line 227 "giscanner/scannerlexer.l" -{ return SWITCH; } +{ return STRUCT; } YY_BREAK case 139: YY_RULE_SETUP #line 228 "giscanner/scannerlexer.l" -{ return TYPEDEF; } +{ return SWITCH; } YY_BREAK case 140: YY_RULE_SETUP #line 229 "giscanner/scannerlexer.l" -{ return UNION; } +{ return TYPEDEF; } YY_BREAK case 141: YY_RULE_SETUP #line 230 "giscanner/scannerlexer.l" -{ return UNSIGNED; } +{ return UNION; } YY_BREAK case 142: YY_RULE_SETUP #line 231 "giscanner/scannerlexer.l" -{ return VOID; } +{ return UNSIGNED; } YY_BREAK case 143: YY_RULE_SETUP #line 232 "giscanner/scannerlexer.l" -{ return VOLATILE; } +{ return VOID; } YY_BREAK case 144: YY_RULE_SETUP #line 233 "giscanner/scannerlexer.l" -{ return WHILE; } +{ return VOLATILE; } YY_BREAK case 145: YY_RULE_SETUP -#line 235 "giscanner/scannerlexer.l" -{ return check_identifier(scanner, yytext); } +#line 234 "giscanner/scannerlexer.l" +{ return WHILE; } YY_BREAK case 146: YY_RULE_SETUP -#line 237 "giscanner/scannerlexer.l" -{ return INTEGER; } +#line 236 "giscanner/scannerlexer.l" +{ return check_identifier(scanner, yytext); } YY_BREAK case 147: YY_RULE_SETUP @@ -2166,8 +2166,8 @@ YY_BREAK case 149: YY_RULE_SETUP -#line 241 "giscanner/scannerlexer.l" -{ return FLOATING; } +#line 240 "giscanner/scannerlexer.l" +{ return INTEGER; } YY_BREAK case 150: YY_RULE_SETUP @@ -2175,10 +2175,9 @@ { return FLOATING; } YY_BREAK case 151: -/* rule 151 can match eol */ YY_RULE_SETUP -#line 244 "giscanner/scannerlexer.l" -{ return CHARACTER; } +#line 243 "giscanner/scannerlexer.l" +{ return FLOATING; } YY_BREAK case 152: /* rule 152 can match eol */ @@ -2189,8 +2188,8 @@ case 153: /* rule 153 can match eol */ YY_RULE_SETUP -#line 247 "giscanner/scannerlexer.l" -{ return STRING; } +#line 246 "giscanner/scannerlexer.l" +{ return CHARACTER; } YY_BREAK case 154: /* rule 154 can match eol */ @@ -2199,16 +2198,22 @@ { return STRING; } YY_BREAK case 155: +/* rule 155 can match eol */ YY_RULE_SETUP -#line 250 "giscanner/scannerlexer.l" -{ print_error(scanner); } +#line 249 "giscanner/scannerlexer.l" +{ return STRING; } YY_BREAK case 156: YY_RULE_SETUP -#line 252 "giscanner/scannerlexer.l" +#line 251 "giscanner/scannerlexer.l" +{ print_error(scanner); } + YY_BREAK +case 157: +YY_RULE_SETUP +#line 253 "giscanner/scannerlexer.l" ECHO; YY_BREAK -#line 2212 "scannerlexer.c" +#line 2217 "scannerlexer.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -3139,7 +3144,7 @@ #define YYTABLES_NAME "yytables" -#line 252 "giscanner/scannerlexer.l" +#line 253 "giscanner/scannerlexer.l" diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-C-expected/Regress.func_obj_nullable_in.page gobject-introspection-1.46.0/tests/scanner/Regress-1.0-C-expected/Regress.func_obj_nullable_in.page --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-C-expected/Regress.func_obj_nullable_in.page 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-C-expected/Regress.func_obj_nullable_in.page 2015-09-09 10:20:37.000000000 +0000 @@ -0,0 +1,38 @@ + + + + + + + void + + regress_func_obj_nullable_in + + RegressTestObj* + obj + + + + regress_func_obj_nullable_in + +void regress_func_obj_nullable_in (RegressTestObj* obj); + + + + + +<code>obj</code> +

A

+ + +<code>Returns</code> + + + + + diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-C-expected/Regress.test_glist_gtype_container_in.page gobject-introspection-1.46.0/tests/scanner/Regress-1.0-C-expected/Regress.test_glist_gtype_container_in.page --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-C-expected/Regress.test_glist_gtype_container_in.page 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-C-expected/Regress.test_glist_gtype_container_in.page 2015-07-18 13:27:49.000000000 +0000 @@ -0,0 +1,38 @@ + + + + + + + void + + regress_test_glist_gtype_container_in + + GList* + in + + + + regress_test_glist_gtype_container_in + +void regress_test_glist_gtype_container_in (GList* in); + + + + + +<code>in</code> + + + +<code>Returns</code> + + + + + diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-expected.gir gobject-introspection-1.46.0/tests/scanner/Regress-1.0-expected.gir --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-expected.gir 2015-06-22 17:07:46.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-expected.gir 2015-09-09 10:20:37.000000000 +0000 @@ -4761,6 +4761,21 @@ + + + + + + + A #RegressTestObj + + + + @@ -5718,6 +5733,19 @@ + + + + + + + + + + + + diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Gjs-expected/Regress.func_obj_nullable_in.page gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Gjs-expected/Regress.func_obj_nullable_in.page --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Gjs-expected/Regress.func_obj_nullable_in.page 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Gjs-expected/Regress.func_obj_nullable_in.page 2015-09-09 10:20:37.000000000 +0000 @@ -0,0 +1,36 @@ + + + + + + + void + + regress_func_obj_nullable_in + + Regress.TestObj + obj + + + + Regress.func_obj_nullable_in + +function func_obj_nullable_in(obj: Regress.TestObj): void { + // Gjs wrapper for regress_func_obj_nullable_in() +} + + + + + +<code>obj</code> +

A

+
+
+ +
diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_glist_gtype_container_in.page gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_glist_gtype_container_in.page --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_glist_gtype_container_in.page 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_glist_gtype_container_in.page 2015-07-18 13:27:49.000000000 +0000 @@ -0,0 +1,36 @@ + + + + + + + void + + regress_test_glist_gtype_container_in + + Array(GObject.Type) + in + + + + Regress.test_glist_gtype_container_in + +function test_glist_gtype_container_in(in: Array(GObject.Type)): void { + // Gjs wrapper for regress_test_glist_gtype_container_in() +} + + + + + +<code>in</code> + + + + + diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Python-expected/Regress.func_obj_nullable_in.page gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Python-expected/Regress.func_obj_nullable_in.page --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Python-expected/Regress.func_obj_nullable_in.page 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Python-expected/Regress.func_obj_nullable_in.page 2015-09-09 10:20:37.000000000 +0000 @@ -0,0 +1,37 @@ + + + + + + + none + + regress_func_obj_nullable_in + + Regress.TestObj + obj + + + + Regress.func_obj_nullable_in + +@accepts(Regress.TestObj) +@returns(none) +def func_obj_nullable_in(obj): + # Python wrapper for regress_func_obj_nullable_in() + + + + + +<code>obj</code> +

A

+
+
+ +
diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Python-expected/Regress.test_glist_gtype_container_in.page gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Python-expected/Regress.test_glist_gtype_container_in.page --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-Python-expected/Regress.test_glist_gtype_container_in.page 1970-01-01 00:00:00.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-Python-expected/Regress.test_glist_gtype_container_in.page 2015-07-18 13:27:49.000000000 +0000 @@ -0,0 +1,37 @@ + + + + + + + none + + regress_test_glist_gtype_container_in + + [GType] + in + + + + Regress.test_glist_gtype_container_in + +@accepts([GType]) +@returns(none) +def test_glist_gtype_container_in(in): + # Python wrapper for regress_test_glist_gtype_container_in() + + + + + +<code>in</code> + + + + + diff -Nru gobject-introspection-1.45.3/tests/scanner/Regress-1.0-sections-expected.txt gobject-introspection-1.46.0/tests/scanner/Regress-1.0-sections-expected.txt --- gobject-introspection-1.45.3/tests/scanner/Regress-1.0-sections-expected.txt 2015-06-22 17:07:46.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/Regress-1.0-sections-expected.txt 2015-09-09 10:20:37.000000000 +0000 @@ -46,6 +46,7 @@ regress_foo_test_varargs_callback2 regress_foo_test_varargs_callback3 regress_func_obj_null_in +regress_func_obj_nullable_in regress_global_get_flags_out regress_has_parameter_named_attrs regress_introspectable_via_alias @@ -119,6 +120,7 @@ regress_test_ghash_null_return regress_test_glist_container_return regress_test_glist_everything_return +regress_test_glist_gtype_container_in regress_test_glist_nothing_in regress_test_glist_nothing_in2 regress_test_glist_nothing_return diff -Nru gobject-introspection-1.45.3/tests/scanner/regress.c gobject-introspection-1.46.0/tests/scanner/regress.c --- gobject-introspection-1.45.3/tests/scanner/regress.c 2015-06-19 21:06:04.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/regress.c 2015-09-09 10:20:37.000000000 +0000 @@ -990,6 +990,24 @@ } /** + * regress_test_glist_gtype_container_in: + * @in: (element-type GType) (transfer container): + */ +void +regress_test_glist_gtype_container_in (GList *in) +{ + GList *l = in; + + g_assert (GPOINTER_TO_SIZE (l->data) == REGRESS_TEST_TYPE_OBJ); + l = l->next; + g_assert (GPOINTER_TO_SIZE (l->data) == REGRESS_TEST_TYPE_SUB_OBJ); + l = l->next; + g_assert (l == NULL); + + g_list_free (in); +} + +/** * regress_test_glist_nothing_in: * @in: (element-type utf8): */ @@ -2984,6 +3002,15 @@ } /** + * regress_func_obj_nullable_in: + * @obj: (nullable): A #RegressTestObj + */ +void +regress_func_obj_nullable_in (RegressTestObj *obj) +{ +} + +/** * regress_test_array_fixed_out_objects: * @objs: (out) (array fixed-size=2) (transfer full): An array of #RegressTestObj */ diff -Nru gobject-introspection-1.45.3/tests/scanner/regress.h gobject-introspection-1.46.0/tests/scanner/regress.h --- gobject-introspection-1.45.3/tests/scanner/regress.h 2015-06-18 23:38:16.000000000 +0000 +++ gobject-introspection-1.46.0/tests/scanner/regress.h 2015-09-09 10:20:37.000000000 +0000 @@ -206,6 +206,9 @@ GList *regress_test_glist_everything_return (void); _GI_TEST_EXTERN +void regress_test_glist_gtype_container_in (GList *in); + +_GI_TEST_EXTERN void regress_test_glist_nothing_in (const GList *in); _GI_TEST_EXTERN @@ -915,6 +918,8 @@ _GI_TEST_EXTERN void regress_test_obj_null_out (RegressTestObj **obj); +void regress_func_obj_nullable_in (RegressTestObj *obj); + /* inheritance */ #define REGRESS_TEST_TYPE_SUB_OBJ (regress_test_sub_obj_get_type ()) #define REGRESS_TEST_SUB_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_SUB_OBJ, RegressTestSubObj)) diff -Nru gobject-introspection-1.45.3/tools/compiler.c gobject-introspection-1.46.0/tools/compiler.c --- gobject-introspection-1.45.3/tools/compiler.c 2013-10-15 23:00:06.000000000 +0000 +++ gobject-introspection-1.46.0/tools/compiler.c 2015-08-10 08:24:23.000000000 +0000 @@ -153,6 +153,15 @@ g_option_context_parse (context, &argc, &argv, &error); g_option_context_free (context); + if (error) + { + g_fprintf (stderr, "error parsing arguments: %s\n", error->message); + + g_error_free (error); + + return 1; + } + logged_levels = G_LOG_LEVEL_MASK & ~(G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_DEBUG); if (debug) logged_levels = logged_levels | G_LOG_LEVEL_DEBUG;