mirror of
git://nv-tegra.nvidia.com/tegra/gst-src/gst-jpeg.git
synced 2025-12-22 09:21:57 +03:00
346e9b8b6d0a96f5bad1ac0e0f7f8ebc7cd510bd - gstjpeg_src/gst-jpeg/Makefile.umbrella.tmk e24bdc385a587270eb801fffc818f334f785f737 - gstjpeg_src/gst-jpeg/README 7c32e10fed5a62435cda77ea2b1dccbc3d487569 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/configure.ac acdf064749f4094ac83731d1ffe8cb2d86723682 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/RELEASE 1b3b27c94812820968ac46dbffbdcca3a5f46e62 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/config.sub 35261ee493b6e344e6e2fad6941b500b4ca731a5 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/gst-plugins-good.spec 7bd6824268f577a25b2eb06aa303f2622612f7c3 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ChangeLog b35a5c3fd2b1a5a55a3320c7cd12f17c2c8224b7 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/config.guess 71e07f3be78211e06de8267a4d1eb417ecd56705 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/depcomp 545f380fb332eb41236596500913ff8d582e3ead - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/COPYING abe4c4205ad738bbfb5cbcd5a3191416ac5e4b58 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/test-driver ba05b9b5706647c270b76d9bad66485c1a61720e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/compile 1502fd3b57842d2693028f3d48dc5e1b36ba092b - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/configure 0ec08c5146b1d31c728c3ceb7ba90ac45a9f3972 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/config.rpath efb98b956bfd4500c84b080fe8821350c2bcc5fa - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/config.log 14c13c2106a25f52b9220288add50989f483f79e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/missing 3a725fd4910c9b541a68992570459ec3c1e49504 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/autoregen.sh 016d81ea69d45c242ec7c4c47051da97d199aeb2 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/INSTALL 9ef8db6e7d0c85438248f392924368c83c09f800 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/gst-plugins-good.doap ac33d77fa2fed4d2ea00546a4c8d6f365ddc84e8 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/autogen.sh afb78ca1253cd324b78fb8cee8ce7932199e24b8 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/NEWS 63a9c73c3c5854496318f8199cc05dc5263e6880 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/Makefile.tmk 1039690ed2504e7d6ce6d594ae7fac4157482100 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/AUTHORS 57201229cc2aebff6031ac85bfef7c8fc9d99152 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/README 017409759df2e86cfaeb2739970bef91a03ef852 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ltmain.sh 840ee15a7cf4a4c13da75b0be23e55471f2668ea - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/gst-plugins-good.spec.in 8e5113f6f47ce34e0437c2105441dbb70f01491a - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/stamp-h.in e34ed57310337f2cf075e5950fde79882e4f2652 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/aclocal.m4 292df2da37730ec02aacdf86d5746cba14a5945f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/Makefile.am 664bbfb27be6eb13791003c4114d95a9c3d51ea1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/install-sh 2afe6cf833176124cdb4a682269c56f55f799fa7 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/config.h.in b50287b75a3b098301455e34c8d8e52a09fa8938 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ABOUT-NLS 35d3e80984baebe92302b12765c0ff086caa33fc - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/libgstnvjpeg.export f42e42f9218a7c6e840bffe6004f963603fa57a2 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/Makefile.interface.tmk f45e76a07ea4fb4fcd04e9f3d0013b4eb30042e4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/REQUIREMENTS a44487c7be05b379700ff586c98fa92606594d66 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/Makefile.in 499a9feb17ceabf1f1443923dffa1e0180bf5972 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/gst-libs/gst/glib-compat-private.h 20c4f7c0cb89c83256650bc3353ed82154cf3a9d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/gst-libs/gst/gst-i18n-plugin.h e864ee6647f3572b144403d799f68152e9900da1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/gst-libs/gst/gettext.h 18682468d79c49bead6766e9c5862e4df74c01bf - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/ChangeLog 075de51935a7bf1467e25385fbba357d1909c0e2 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/cruft.mak 4b16dd6416ddf1f69c77e5103703299d382dcb28 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/plugins.xsl ca9ec76873d7e5efcf0d8368b7266b51e1b8ca6d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/glib-gen.mak 8793fae1e41f0e817ba9d0b16bf6b22e535cd257 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/orc.mak 3410954e26e4c6ce8a486469ffcf3e3ffb7d9c70 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/upload-doc.mak 7830a264b72884719cb0dfc49fb1c8002acec098 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/check.mak 13128372367f1615ec3cf1ace3894aaba4f69a9a - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gtk-doc.mak 0fc9d51ba37498b031af0d6d7708efecf48c89d4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gst-glib-gen.mak 0677527e2e4691bf3a00051dda367bcc7f2be39c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/download-translations ffd85134520f03ab04f78d692ac43d447d5a333d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/check-exports c4f2a5f3407f4f36bf44a0a5efabe0b47ee1f7ff - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gst-autogen.sh 6e7de85a067e4226c9e514d9f3632313b7da8cfb - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/extract-release-date-from-doap-file 197095691158025a9e9cadaeb840f9563d5ff867 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/README abd136152f2237ca77c4b7250ab25a891e37980e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gettext.patch eb61af55b4a055ae9c4d8d73ee044606e6d83433 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gst-indent 6a022f9d4213fef139ded46e9def02fc9568dba4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/scangobj-merge.py 38e131585e34cf73aaf5f3b7ad71d6f1c3a5789d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/release.mak 1a6e3dd8d4c539e4e432251481da67baa1ea052e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gstdoc-scangobj 288d571a3c69d2b7713ab7eb947557b3eab3e996 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/Makefile.am 30905c2891a7cefc183c15ac7e2f3df7fef050ce - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gst.supp 9f7ce930effb4edd1d6115e485fa9a85c9ff4b51 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/po.mak a73cfcb8cb5dedc37cbe2bf101f60963428e10d0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/c-to-xml.py d939aa50f779c58ed162c02eafe85f14f396e04c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/win32.mak eb49c9cb7d744b949dd4f3c5eff05ea143cf1610 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/Makefile.in 458997fe37773a676425af72a0c93251202c09b5 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/mangle-tmpl.py 1578c0786417b5842499d845b61807b10f725cfe - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/parallel-subdirs.mak b3d841322fe712862a95363182dd7d224f5ee8e7 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/gtk-doc-plugins.mak 3eb1de3555c0b8db592c6688a2906050695bc79c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/coverage/coverage-report.xsl 24b553f6168fba90313f2a48a8db7d033729f6ab - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/coverage/lcov.mak b2ce9d717992c7ee590ef18515bf77c873d06b7c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/coverage/coverage-report.pl a1f778c2542a12364580737e6896b2c7d4fb3785 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/coverage/coverage-report-entry.pl 29703c5ede63ad1a151e28704bb00609fa30c6a0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-scrub-include.m4 6bb666042ba9c6d1d2d59cc9b25b6e5a8faa8463 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-gettext.m4 bca900e4552a466994e5e70db40cc33cbd511d1e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-arch.m4 934b87475134e79cb57f715e66eefc6b15707eb4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-check.m4 6f1b3fc7b9e4e780a85c8eb6daf55ab8479443ba - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gtk-doc.m4 23c4427e98431a619577c709271869fc8eabdb2a - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/orc.m4 ae8e72d314b4d0f45ae63d394a47ff6d8eeb8a90 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-libtool.m4 874d72b3d5bee4accf5b2356a2427219561d984d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-error.m4 35b2cdff58f172361c07759fe1c5c7e4a2ca53f7 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/ax_create_stdint_h.m4 d091605bd13b043b261fe35b694bcc0018a40296 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-auto-alt.m4 63d4cba7e78f2d963a331b42a9479ea3eb6419f9 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-plugin-docs.m4 ec04a8826224476f2ea3566c397ba26ce4066d13 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-dowhile.m4 72f9aba8227597bbeae7b34e71485cc9436ef7b3 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-compiler.m4 ef1870ced60e75dfa6eb026d27baa1c353945416 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-args.m4 2210f6d7378bc47b569204766b144979e2a56743 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-feature.m4 ae76ac53db46f6d4e4adf864c67aaa38802ed49a - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-x11.m4 36ceb1b5014b55df700b79442c04db6755f3c365 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/pkg.m4 7ca73f4afd8a18d79ec24f1ff66f5c5a2a55cd80 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-libxml2.m4 f44576689b80d449820786fbd44d59c20a7de148 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-debuginfo.m4 c3a624a9ef403e35de8cbb90fcc8d39a37aa84db - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-docbook.m4 cc5c2f9b4182b33aed4c2c95119c505426568e17 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-valgrind.m4 a99e3594884d3ded4272d47a57f3cb1454cfa0e4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-gcc-inline-assembly.m4 20d42715d48c34a41f34aaee5ec69dbc2110980d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/introspection.m4 e8ca19f83745223d9c08240868ffcb0f1ed0974c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-platform.m4 812653280cbe49e322c92bb87055a9c3dcee585f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-plugindir.m4 357537cdacedff967d5a458626ecc857c00594f6 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/README 0e3e9f3254b1594258e870527099eac9dc23d2a9 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-libtool-tags.m4 fe032bdd61e17c15d32b4b55bec0a05a6715b6cc - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst.m4 bff661fe0b2cad854a10975b9dc901c78a36b2dd - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/glib-gettext.m4 5599ba5c7936730b1eba8d15db41864a7b54aa29 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-doc.m4 5c573d78bd6b47c9bb4b96fa815fb6b88407a073 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/Makefile.am 851b18a4046c0ff5274138913bcee5f994ac6025 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-python.m4 167307eb9933b10f6e8ed4b1c3123c505950892f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-parser.m4 4f5bb978b35d3f979180cc1f0cb245047763f183 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-function.m4 3185909cef1f8278f84d7015eca6a987e9221a71 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-version.m4 04c9953a59beb0849e4b5201abce3976c853158d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/check.m4 eca5f41dfa67e0c3ff0f2c10e5d5f5488b9c8112 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-package-release-datetime.m4 24cde09af4b0008787d51cfe79de45614077ee3b - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-glib2.m4 d9e18190b9400343c7b5648ba6098a35695786c4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-ac-expand.m4 9e0e0bfdb0c150d6a42bcbce4e5f990275f3e2c4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/gst-default.m4 3742d4aaf2630513cfd1c0f8f7ccde8745990676 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/Makefile.in a885b85918475992b96804347da9d2fdd584eea0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/common/m4/as-compiler-flag.m4 2fa7a2f1d4708ce84f5cb7ab197232e7192ac1d5 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/Makefile.am 8cdeeee31ce0486e4415ed89e3d41a9ea842b780 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/Makefile.in 57a034a0c4b3dd42919dc43aa2267a5b0abf1070 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/gstjpegenc.h 1c6a590a8222da61dc4c1d23299f68f3db6ac89f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/Makefile a391084497f41f097ab7374ab4e13fd1164b2838 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/gstjpegenc.c a26e041d7c57a3f273e75a377668c2d15d72e7a6 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/gstjpegdec.c 7d07a567f048561b01d8a69566a5696610188a10 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/gstjpeg.h b8aa778747d5aac0358cbc010ac319b1b494ceb6 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/gstjpeg.c 5cc8c6abe8ac099c573cf572d3982dcf9e6ddf52 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/README d64dbe270d720d898e926766392233e2ec83c510 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/gstjpegdec.h 1890efc86015d4bd253fb0415d71819c1d975bf8 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/Makefile.am ac1afda6e3491423588da811f157e6ea3787b3f1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/Makefile.in 1081a235ac54f71fb6cce3c806bda9c2e1205813 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/as-liblame.m4 25c2435fa4cb5dc86ffad28bf9b1a6a14dd53a68 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/ltversion.m4 05cbee5b7c42d1ca19644a4da42e294c19d245d8 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/check-libheader.m4 d6d1ea1fd251ced66ba87ceb6f9e3846124691c1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/ltsugar.m4 0ba197512975fcebaa79022bd904b672ce207a3c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-shout2.m4 4c430f990925e7483679cb8882a0915c16e9ff22 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/libtool.m4 27a9f5f884d564142136dcf4975b4c708e62a275 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/inttypes-pri.m4 6735755edb13cd18f04d5f0a7d6e8626f6cf2bb6 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/libfame.m4 2a3770fa6a7e2cbd6ffb0826dfff7effa5ba490c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/freetype2.m4 09b1f0083d3d98b9b41849386dfb16bc595b7748 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/libmikmod.m4 c16c7478a2ad06fad39890cb221a07eed8c6a5c4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/aalib.m4 62607ed98426f5dad7f97677228862928919f460 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gettext.m4 249554965989045ce952e9a7fc6ad68d7ccc281f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/lib-prefix.m4 c83589db9512bf0e194d3106a27ea4a46894f96e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/as-slurp-ffmpeg.m4 2f17e47cd7b91e27ed9a966d4237e669263b251e - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-sdl.m4 c0c6afe569131b4015d221bc853053cf884b2699 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/lt~obsolete.m4 33afa7777184315ffceecb7f8d15423639b6b9e4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/progtest.m4 b8ad2cf2facc9a831ded53b2d93aca6fea27877c - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-fionread.m4 4a0a8f5cc426592bd721ef5a634af27e2bb404ed - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-ivorbis.m4 1a827e3e7e5dd41dc224f815ded4a13c158eb867 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/as-ffmpeg.m4 b47c4dc99957307b2cf3e48e04446ed4c35e5ed0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/codeset.m4 8b72b8f5f76e41e4ca0f2521c06c568490894a84 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/lib-ld.m4 a8c68e296e1671567afd5cd238a9992b81c7d7fe - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/README de22971af750306001cdc60beab8003411f9e549 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/lcmessage.m4 2c28ab42454fab0d0d4b56204c0732ca5b176f11 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/intlmacosx.m4 f3cda49613ef0c9261efc246221ee3b1be2ac421 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/nls.m4 63755f3a62281a5aedc127b25fbf0fb4e6684ddc - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/stdint_h.m4 3bd011b3dc0b4dd6435e992c5992f67695e772e5 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/uintmax_t.m4 3fe03a7db27a4dc57c56244e2d27d82c4740ad93 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/a52.m4 fac0d12ab5f50afbf17eb40b8d92f9c0602898e9 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/vorbis.m4 cb8eca5f2dc5586e7043c395e4aa0bf02b327aa7 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/Makefile.am e611327cf332685bc5b8ca4bd149e7227bed75a0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/ogg.m4 b48471c5904b0d92e8f5749113edf8b67d0912d2 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-alsa.m4 2184b6fb58b7a3dc7c55491395ec82184f26544d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/intdiv0.m4 353ce963e2c5a2a6313522479a0df096b11969b2 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/glibc21.m4 d324d2883cc1e7679455b54c0a0531670eda1a6f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/po.m4 201eb58c2b3f3c5395dacd3913a4fb9d950d3276 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/glib.m4 393030ac10902d389e2ea993490cc4c36491f9ea - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/lib-link.m4 0248c9a4479822bf4c45b72c92f0f017c662bbf9 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gtk.m4 581e2927dfc83ae4fb8c5506c31e826e5871872a - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-sid.m4 9fbec988b8b273fdaccf403cebaf345aad020bdb - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/iconv.m4 712147ce28e80f623cd5e01cda44e14f367777d9 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-artsc.m4 6ad67edced3162e33abe230a1ea8ee0791e8b146 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/gst-matroska.m4 05ec66892c8b30f20aa5278e1671ae4925a9c063 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/ltoptions.m4 ead3514f1a6ae29053a1dd9a3c9fd1c8d2c7ce41 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/Makefile.in 66f7a1b546fa2dd200c136e3fc3475bfaa26fee1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/m4/inttypes_h.m4 00af72858870bbd0756be1c259cf386e2e3dc4fd - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen-source_64/config.h 9b846e1aa37b44bd0876d5b848ec4409721f870d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/config.sub b6f1d63f8ba9f8725c0690e2b0d233a6e5d95181 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/config.guess 6749a6b5ab2b3edd45d38ac560759c641cd50200 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/depcomp 0da19033c0c784c694a90b2e93838fb797f54036 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/configure 0ec08c5146b1d31c728c3ceb7ba90ac45a9f3972 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/config.rpath aeef20c1028a7ac4b904dd51b4c40376eba21350 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/missing 939b93ec4ba99039c71cab7f902b918deb0cd00f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/ltmain.sh 132495ec7d6b5e2fa215ba535c35d9118a46c8aa - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/aclocal.m4 d30e962a3de2da09ab0a9a7979bee787922464a1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/install-sh 4d16aed27a00c1a5012ce14897562dfbfbe162cd - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/config.h.in 967c9b4acd94a288632b1414c831b4551a1a7660 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/Makefile.in 4421be07a4f4daa24218df175597ea1b5fbbe5a7 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/src/Makefile.in 944969360e63c72182725fe82155057ba44e7460 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/ltversion.m4 d6d1ea1fd251ced66ba87ceb6f9e3846124691c1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/ltsugar.m4 33c63aa7930a3f40991e89422b96127efc66646a - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/libtool.m4 27a9f5f884d564142136dcf4975b4c708e62a275 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/inttypes-pri.m4 62607ed98426f5dad7f97677228862928919f460 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/gettext.m4 249554965989045ce952e9a7fc6ad68d7ccc281f - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/lib-prefix.m4 c0c6afe569131b4015d221bc853053cf884b2699 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/lt~obsolete.m4 33afa7777184315ffceecb7f8d15423639b6b9e4 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/progtest.m4 b47c4dc99957307b2cf3e48e04446ed4c35e5ed0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/codeset.m4 8b72b8f5f76e41e4ca0f2521c06c568490894a84 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/lib-ld.m4 de22971af750306001cdc60beab8003411f9e549 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/lcmessage.m4 63755f3a62281a5aedc127b25fbf0fb4e6684ddc - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/stdint_h.m4 3bd011b3dc0b4dd6435e992c5992f67695e772e5 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/uintmax_t.m4 2184b6fb58b7a3dc7c55491395ec82184f26544d - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/intdiv0.m4 353ce963e2c5a2a6313522479a0df096b11969b2 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/glibc21.m4 393030ac10902d389e2ea993490cc4c36491f9ea - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/lib-link.m4 9fbec988b8b273fdaccf403cebaf345aad020bdb - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/iconv.m4 40abd1f0e6e2e5c98147301c2025f2e3d3568f69 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/ltoptions.m4 3c519bc90c64d4ee5bd1935eda2b9285b1924bc0 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/Makefile.in 66f7a1b546fa2dd200c136e3fc3475bfaa26fee1 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen/m4/inttypes_h.m4 3f30a5d1d7eb717c7001de349cc85f78c6b77fa8 - gstjpeg_src/gst-jpeg/gst-jpeg-1.0/.nvtegra/pre-gen-source/config.h 895f0ba75938e772a7e890d2176849b62b36babc - gstjpeg_src/nv_headers/jerror.h b9517c8c9525ae809ebc581c2caabe4ec9992338 - gstjpeg_src/nv_headers/jpeglib.h 913bb5d5d2d50dff9cbab5f3f3eb7ae5aa37e8c4 - gstjpeg_src/nv_headers/jconfig.h 862fc2901639eff2493b9987d0df81128088f217 - gstjpeg_src/nv_headers/jmorecfg.h Change-Id: Ibdacedde07f71beb89694723fe3a057a61db643a
1610 lines
45 KiB
Perl
Executable File
1610 lines
45 KiB
Perl
Executable File
#!/usr/bin/env perl
|
|
# -*- cperl -*-
|
|
#
|
|
# gtk-doc - GTK DocBook documentation generator.
|
|
# Copyright (C) 1998 Damon Chaplin
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program 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 General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
|
|
#
|
|
# This gets information about object hierarchies and signals
|
|
# by compiling a small C program. CFLAGS and LDFLAGS must be
|
|
# set appropriately before running this script.
|
|
#
|
|
|
|
use Getopt::Long;
|
|
|
|
my $GTK_DOC_PREFIX=`pkg-config --variable prefix gtk-doc`;
|
|
if ($GTK_DOC_PREFIX) {
|
|
chomp $GTK_DOC_PREFIX;
|
|
#print "Adding $GTK_DOC_PREFIX/share/gtk-doc/data to \@INC\n";
|
|
unshift @INC, "$GTK_DOC_PREFIX/share/gtk-doc/data";
|
|
} else {
|
|
unshift @INC, '/usr/share/gtk-doc/data';
|
|
}
|
|
require "gtkdoc-common.pl";
|
|
|
|
# Options
|
|
|
|
# name of documentation module
|
|
my $MODULE;
|
|
my $OUTPUT_DIR;
|
|
my $INSPECT_DIR;
|
|
my $VERBOSE;
|
|
my $PRINT_VERSION;
|
|
my $PRINT_HELP;
|
|
my $TYPE_INIT_FUNC="g_type_init ()";
|
|
|
|
# --nogtkinit is deprecated, as it is the default now anyway.
|
|
%optctl = (module => \$MODULE,
|
|
source => \$SOURCE,
|
|
types => \$TYPES_FILE,
|
|
nogtkinit => \$NO_GTK_INIT,
|
|
'type-init-func' => \$TYPE_INIT_FUNC,
|
|
'output-dir' => \$OUTPUT_DIR,
|
|
'inspect-dir' => \$INSPECT_DIR,
|
|
'verbose' => \$VERBOSE,
|
|
'version' => \$PRINT_VERSION,
|
|
'help' => \$PRINT_HELP);
|
|
|
|
GetOptions(\%optctl, "module=s", "source=s", "types:s", "output-dir:s", "inspect-dir:s", "nogtkinit", "type-init-func:s", "verbose", "version", "help");
|
|
|
|
if ($NO_GTK_INIT) {
|
|
# Do nothing. This just avoids a warning.
|
|
# the option is not used anymore
|
|
}
|
|
|
|
if ($PRINT_VERSION) {
|
|
print "1.5\n";
|
|
exit 0;
|
|
}
|
|
|
|
if (!$MODULE) {
|
|
$PRINT_HELP = 1;
|
|
}
|
|
|
|
if ($PRINT_HELP) {
|
|
print <<EOF;
|
|
gstdoc-scangobj version 1.5 - introspect gstreamer-plugins
|
|
|
|
--module=MODULE_NAME Name of the doc module being parsed
|
|
--source=SOURCE_NAME Name of the source module for plugins
|
|
--types=FILE The name of the file to store the types in
|
|
--type-init-func=FUNC The init function to call instead of g_type_init()
|
|
--output-dir=DIRNAME The directory where the results are stored
|
|
--inspect-dir=DIRNAME The directory where the plugin inspect data is stored
|
|
--verbose Print extra output while processing
|
|
--version Print the version of this program
|
|
--help Print this help
|
|
EOF
|
|
exit 0;
|
|
}
|
|
|
|
$OUTPUT_DIR = $OUTPUT_DIR ? $OUTPUT_DIR : ".";
|
|
|
|
$TYPES_FILE = $TYPES_FILE ? $TYPES_FILE : "$OUTPUT_DIR/$MODULE.types";
|
|
|
|
open (TYPES, $TYPES_FILE) || die "Cannot open $TYPES_FILE: $!\n";
|
|
open (OUTPUT, ">$MODULE-scan.c") || die "Cannot open $MODULE-scan.c: $!\n";
|
|
|
|
my $old_signals_filename = "$OUTPUT_DIR/$MODULE.signals";
|
|
my $new_signals_filename = "$OUTPUT_DIR/$MODULE.signals.new";
|
|
my $old_hierarchy_filename = "$OUTPUT_DIR/$MODULE.hierarchy";
|
|
my $new_hierarchy_filename = "$OUTPUT_DIR/$MODULE.hierarchy.new";
|
|
my $old_interfaces_filename = "$OUTPUT_DIR/$MODULE.interfaces";
|
|
my $new_interfaces_filename = "$OUTPUT_DIR/$MODULE.interfaces.new";
|
|
my $old_prerequisites_filename = "$OUTPUT_DIR/$MODULE.prerequisites";
|
|
my $new_prerequisites_filename = "$OUTPUT_DIR/$MODULE.prerequisites.new";
|
|
my $old_args_filename = "$OUTPUT_DIR/$MODULE.args";
|
|
my $new_args_filename = "$OUTPUT_DIR/$MODULE.args.new";
|
|
|
|
my $debug_log="g_message";
|
|
if (!defined($VERBOSE) or $VERBOSE eq "0") {
|
|
$debug_log="//$debug_log";
|
|
}
|
|
|
|
# write a C program to scan the types
|
|
|
|
$includes = "";
|
|
@types = ();
|
|
@impl_types = ();
|
|
|
|
for (<TYPES>) {
|
|
if (/^#include/) {
|
|
$includes .= $_;
|
|
} elsif (/^%/) {
|
|
next;
|
|
} elsif (/^\s*$/) {
|
|
next;
|
|
} elsif (/^type:(.*)$/) {
|
|
$t = $1;
|
|
chomp $t;
|
|
push @impl_types, $t;
|
|
} else {
|
|
chomp;
|
|
push @types, $_;
|
|
}
|
|
}
|
|
|
|
$ntypes = @types + @impl_types + 1;
|
|
|
|
print OUTPUT <<EOT;
|
|
|
|
/* file generated by common/gstdoc-scangobj */
|
|
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
$includes
|
|
|
|
#ifdef GTK_IS_WIDGET_CLASS
|
|
#include <gtk/gtkversion.h>
|
|
#endif
|
|
|
|
static GType *object_types = NULL;
|
|
|
|
static GString *xmlstr = NULL;
|
|
|
|
static const gchar*
|
|
xmlprint (gint indent, const gchar *tag, const gchar *data)
|
|
{
|
|
const gchar indent_str[] = " ";
|
|
|
|
/* reset */
|
|
g_string_truncate (xmlstr, 0);
|
|
g_string_append_len (xmlstr, indent_str, MIN (indent, strlen (indent_str)));
|
|
g_string_append_printf (xmlstr, "<%s>", tag);
|
|
|
|
if (data) {
|
|
gchar *s;
|
|
|
|
s = g_markup_escape_text (data, -1);
|
|
g_string_append (xmlstr, s);
|
|
g_free (s);
|
|
}
|
|
|
|
g_string_append_printf (xmlstr, "</%s>\\n", tag);
|
|
return xmlstr->str;
|
|
}
|
|
|
|
static gint
|
|
gst_feature_sort_compare (gconstpointer a, gconstpointer b)
|
|
{
|
|
const gchar *name_a = gst_plugin_feature_get_name ((GstPluginFeature *) a);
|
|
const gchar *name_b = gst_plugin_feature_get_name ((GstPluginFeature *) b);
|
|
return strcmp (name_a, name_b);
|
|
}
|
|
|
|
static gint
|
|
static_pad_template_compare (gconstpointer a, gconstpointer b)
|
|
{
|
|
GstStaticPadTemplate *spt_a = (GstStaticPadTemplate *) a;
|
|
GstStaticPadTemplate *spt_b = (GstStaticPadTemplate *) b;
|
|
|
|
/* we want SINK before SRC (enum is UNKNOWN, SRC, SINK) */
|
|
if (spt_a->direction != spt_b->direction)
|
|
return spt_b->direction - spt_a->direction;
|
|
|
|
/* we want ALWAYS first, SOMETIMES second, REQUEST last
|
|
* (enum is ALWAYS, SOMETIMES, REQUEST) */
|
|
if (spt_a->presence != spt_b->presence)
|
|
return spt_a->presence - spt_b->presence;
|
|
|
|
return strcmp (spt_a->name_template, spt_b->name_template);
|
|
}
|
|
|
|
static GType *
|
|
get_object_types (void)
|
|
{
|
|
gpointer g_object_class;
|
|
GList *plugins = NULL;
|
|
GList *factories = NULL;
|
|
GList *l;
|
|
GstElementFactory *factory = NULL;
|
|
GType type;
|
|
gint i = 0;
|
|
gboolean reinspect;
|
|
|
|
/* get a list of features from plugins in our source module */
|
|
plugins = gst_registry_get_plugin_list (gst_registry_get ());
|
|
|
|
xmlstr = g_string_new ("");
|
|
|
|
reinspect = !g_file_test ("scanobj-build.stamp", G_FILE_TEST_EXISTS);
|
|
|
|
while (plugins) {
|
|
GList *features;
|
|
GstPlugin *plugin;
|
|
const gchar *source;
|
|
FILE *inspect = NULL;
|
|
gchar *inspect_name;
|
|
|
|
plugin = (GstPlugin *) (plugins->data);
|
|
plugins = g_list_next (plugins);
|
|
source = gst_plugin_get_source (plugin);
|
|
if (!source || strcmp (source, "$SOURCE") != 0) {
|
|
continue;
|
|
}
|
|
|
|
/* skip static coreelements plugin with pipeline and bin element factory */
|
|
if (gst_plugin_get_filename (plugin) == NULL)
|
|
continue;
|
|
|
|
$debug_log ("plugin: %s source: %s", gst_plugin_get_name (plugin), source);
|
|
|
|
if (reinspect) {
|
|
gchar *basename;
|
|
|
|
inspect_name = g_strdup_printf ("$INSPECT_DIR" G_DIR_SEPARATOR_S "plugin-%s.xml",
|
|
gst_plugin_get_name (plugin));
|
|
inspect = fopen (inspect_name, "w");
|
|
if (inspect == NULL) {
|
|
g_error ("Could not open %s for writing: %s\\n", inspect_name,
|
|
g_strerror (errno));
|
|
}
|
|
g_free (inspect_name);
|
|
|
|
basename = g_path_get_basename (gst_plugin_get_filename (plugin));
|
|
|
|
/* output plugin data */
|
|
fputs ("<plugin>\\n",inspect);
|
|
fputs (xmlprint(2, "name", gst_plugin_get_name (plugin)),inspect);
|
|
fputs (xmlprint(2, "description", gst_plugin_get_description (plugin)),inspect);
|
|
fputs (xmlprint(2, "filename", gst_plugin_get_filename (plugin)),inspect);
|
|
fputs (xmlprint(2, "basename", basename),inspect);
|
|
fputs (xmlprint(2, "version", gst_plugin_get_version (plugin)),inspect);
|
|
fputs (xmlprint(2, "license", gst_plugin_get_license (plugin)),inspect);
|
|
fputs (xmlprint(2, "source", gst_plugin_get_source (plugin)),inspect);
|
|
fputs (xmlprint(2, "package", gst_plugin_get_package (plugin)),inspect);
|
|
fputs (xmlprint(2, "origin", gst_plugin_get_origin (plugin)),inspect);
|
|
fputs (" <elements>\\n", inspect);
|
|
|
|
g_free (basename);
|
|
}
|
|
|
|
features =
|
|
gst_registry_get_feature_list_by_plugin (gst_registry_get (),
|
|
gst_plugin_get_name (plugin));
|
|
|
|
/* sort factories by feature->name */
|
|
features = g_list_sort (features, gst_feature_sort_compare);
|
|
|
|
while (features) {
|
|
GstPluginFeature *feature;
|
|
feature = GST_PLUGIN_FEATURE (features->data);
|
|
feature = gst_plugin_feature_load (feature);
|
|
if (!feature) {
|
|
g_warning ("Could not load plugin feature %s",
|
|
gst_plugin_feature_get_name (feature));
|
|
}
|
|
|
|
if (GST_IS_ELEMENT_FACTORY (feature)) {
|
|
const gchar *pad_dir[] = { "unknown","source","sink" };
|
|
const gchar *pad_pres[] = { "always","sometimes","request" };
|
|
GList *pads, *pad;
|
|
|
|
$debug_log (" feature: %s", gst_plugin_feature_get_name (feature));
|
|
|
|
factory = GST_ELEMENT_FACTORY (feature);
|
|
factories = g_list_prepend (factories, factory);
|
|
|
|
if (reinspect) {
|
|
/* output element data */
|
|
fputs (" <element>\\n", inspect);
|
|
fputs (xmlprint(6, "name", gst_plugin_feature_get_name (feature)),inspect);
|
|
fputs (xmlprint(6, "longname", gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_LONGNAME)),inspect);
|
|
fputs (xmlprint(6, "class", gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_KLASS)),inspect);
|
|
fputs (xmlprint(6, "description", gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_DESCRIPTION)),inspect);
|
|
fputs (xmlprint(6, "author", gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_AUTHOR)),inspect);
|
|
fputs (" <pads>\\n", inspect);
|
|
|
|
/* output pad-template data */
|
|
pads = g_list_copy ((GList *) gst_element_factory_get_static_pad_templates (factory));
|
|
pads = g_list_sort (pads, static_pad_template_compare);
|
|
for (pad = pads; pad != NULL; pad = pad->next) {
|
|
GstStaticPadTemplate *pt = pad->data;
|
|
|
|
fputs (" <caps>\\n", inspect);
|
|
fputs (xmlprint(10, "name", pt->name_template),inspect);
|
|
fputs (xmlprint(10, "direction", pad_dir[pt->direction]),inspect);
|
|
fputs (xmlprint(10, "presence", pad_pres[pt->presence]),inspect);
|
|
fputs (xmlprint(10, "details", pt->static_caps.string),inspect);
|
|
fputs (" </caps>\\n", inspect);
|
|
}
|
|
g_list_free (pads);
|
|
fputs (" </pads>\\n </element>\\n", inspect);
|
|
}
|
|
}
|
|
features = g_list_next (features);
|
|
}
|
|
|
|
if (reinspect) {
|
|
fputs (" </elements>\\n</plugin>", inspect);
|
|
fclose (inspect);
|
|
}
|
|
}
|
|
|
|
g_string_free (xmlstr, TRUE);
|
|
|
|
$debug_log ("number of element factories: %d", g_list_length (factories));
|
|
|
|
/* allocate the object_types array to hold them */
|
|
object_types = g_new0 (GType, g_list_length (factories)+$ntypes+1);
|
|
|
|
l = factories;
|
|
i = 0;
|
|
|
|
/* fill it */
|
|
while (l) {
|
|
factory = GST_ELEMENT_FACTORY (l->data);
|
|
type = gst_element_factory_get_element_type (factory);
|
|
if (type != 0) {
|
|
$debug_log ("adding type for factory %s", gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_LONGNAME));
|
|
object_types[i++] = type;
|
|
} else {
|
|
g_message ("type info for factory %s not found",
|
|
gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_LONGNAME));
|
|
}
|
|
l = g_list_next (l);
|
|
}
|
|
|
|
EOT
|
|
|
|
# get_type functions:
|
|
for (@types) {
|
|
print OUTPUT <<EOT;
|
|
type = $_ ();
|
|
if (type == 0) {
|
|
g_message ("$_ () didn't return a valid type");
|
|
}
|
|
else {
|
|
object_types[i++] = type;
|
|
}
|
|
EOT
|
|
}
|
|
|
|
# Implicit types retrieved from GLib:
|
|
for (@impl_types) {
|
|
print OUTPUT <<EOT;
|
|
type = g_type_from_name ("$_");
|
|
if (type == 0) {
|
|
g_message ("Implicit type $_ not found");
|
|
}
|
|
else {
|
|
object_types[i++] = type;
|
|
}
|
|
EOT
|
|
}
|
|
|
|
print OUTPUT <<EOT;
|
|
|
|
object_types[i] = 0;
|
|
|
|
/* reference the GObjectClass to initialize the param spec pool
|
|
* potentially needed by interfaces. See http://bugs.gnome.org/571820 */
|
|
g_object_class = g_type_class_ref (G_TYPE_OBJECT);
|
|
|
|
/* Need to make sure all the types are loaded in and initialize
|
|
* their signals and properties.
|
|
*/
|
|
for (i=0; object_types[i]; i++)
|
|
{
|
|
if (G_TYPE_IS_CLASSED (object_types[i]))
|
|
g_type_class_ref (object_types[i]);
|
|
if (G_TYPE_IS_INTERFACE (object_types[i]))
|
|
g_type_default_interface_ref (object_types[i]);
|
|
}
|
|
|
|
g_type_class_unref (g_object_class);
|
|
|
|
return object_types;
|
|
}
|
|
|
|
/*
|
|
* This uses GObject type functions to output signal prototypes and the object
|
|
* hierarchy.
|
|
*/
|
|
|
|
/* The output files */
|
|
const gchar *signals_filename = "$new_signals_filename";
|
|
const gchar *hierarchy_filename = "$new_hierarchy_filename";
|
|
const gchar *interfaces_filename = "$new_interfaces_filename";
|
|
const gchar *prerequisites_filename = "$new_prerequisites_filename";
|
|
const gchar *args_filename = "$new_args_filename";
|
|
|
|
|
|
static void output_signals (void);
|
|
static void output_object_signals (FILE *fp,
|
|
GType object_type);
|
|
static void output_object_signal (FILE *fp,
|
|
const gchar *object_class_name,
|
|
guint signal_id);
|
|
static const gchar * get_type_name (GType type,
|
|
gboolean * is_pointer);
|
|
static void output_object_hierarchy (void);
|
|
static void output_hierarchy (FILE *fp,
|
|
GType type,
|
|
guint level);
|
|
|
|
static void output_object_interfaces (void);
|
|
static void output_interfaces (FILE *fp,
|
|
GType type);
|
|
|
|
static void output_interface_prerequisites (void);
|
|
static void output_prerequisites (FILE *fp,
|
|
GType type);
|
|
|
|
static void output_args (void);
|
|
static void output_object_args (FILE *fp, GType object_type);
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
/* Silence the compiler: */
|
|
if (argv != argv) argc = argc;
|
|
|
|
$TYPE_INIT_FUNC;
|
|
|
|
get_object_types ();
|
|
|
|
output_signals ();
|
|
output_object_hierarchy ();
|
|
output_object_interfaces ();
|
|
output_interface_prerequisites ();
|
|
output_args ();
|
|
|
|
return 0;
|
|
}
|
|
|
|
|
|
static void
|
|
output_signals (void)
|
|
{
|
|
FILE *fp;
|
|
gint i;
|
|
|
|
fp = fopen (signals_filename, "w");
|
|
if (fp == NULL)
|
|
{
|
|
g_warning ("Couldn't open output file: %s : %s", signals_filename, g_strerror(errno));
|
|
return;
|
|
}
|
|
|
|
for (i = 0; object_types[i]; i++)
|
|
output_object_signals (fp, object_types[i]);
|
|
|
|
fclose (fp);
|
|
}
|
|
|
|
static gint
|
|
compare_signals (const void *a, const void *b)
|
|
{
|
|
const guint *signal_a = a;
|
|
const guint *signal_b = b;
|
|
|
|
return strcmp (g_signal_name (*signal_a), g_signal_name (*signal_b));
|
|
}
|
|
|
|
/* This outputs all the signals of one object. */
|
|
static void
|
|
output_object_signals (FILE *fp, GType object_type)
|
|
{
|
|
const gchar *object_class_name;
|
|
guint *signals, n_signals;
|
|
guint sig;
|
|
|
|
if (G_TYPE_IS_INSTANTIATABLE (object_type) ||
|
|
G_TYPE_IS_INTERFACE (object_type))
|
|
{
|
|
|
|
object_class_name = g_type_name (object_type);
|
|
|
|
signals = g_signal_list_ids (object_type, &n_signals);
|
|
qsort (signals, n_signals, sizeof (guint), compare_signals);
|
|
|
|
for (sig = 0; sig < n_signals; sig++)
|
|
{
|
|
output_object_signal (fp, object_class_name, signals[sig]);
|
|
}
|
|
g_free (signals);
|
|
}
|
|
}
|
|
|
|
|
|
/* This outputs one signal. */
|
|
static void
|
|
output_object_signal (FILE *fp,
|
|
const gchar *object_name,
|
|
guint signal_id)
|
|
{
|
|
GSignalQuery query_info;
|
|
const gchar *type_name, *ret_type, *object_arg, *arg_name;
|
|
gchar *pos, *object_arg_lower;
|
|
gboolean is_pointer;
|
|
gchar buffer[1024];
|
|
guint i, param;
|
|
gint param_num, widget_num, event_num, callback_num;
|
|
gint *arg_num;
|
|
gchar signal_name[128];
|
|
gchar flags[16];
|
|
|
|
$debug_log ("Object: %s Signal: %u", object_name, signal_id);
|
|
|
|
param_num = 1;
|
|
widget_num = event_num = callback_num = 0;
|
|
|
|
g_signal_query (signal_id, &query_info);
|
|
|
|
/* Output the signal object type and the argument name. We assume the
|
|
type is a pointer - I think that is OK. We remove "Gtk" or "Gnome" and
|
|
convert to lower case for the argument name. */
|
|
pos = buffer;
|
|
sprintf (pos, "%s ", object_name);
|
|
pos += strlen (pos);
|
|
|
|
/* Try to come up with a sensible variable name for the first arg
|
|
* It chops off 2 know prefixes :/ and makes the name lowercase
|
|
* It should replace lowercase -> uppercase with '_'
|
|
* GFileMonitor -> file_monitor
|
|
* GIOExtensionPoint -> extension_point
|
|
* GtkTreeView -> tree_view
|
|
* if 2nd char is upper case too
|
|
* search for first lower case and go back one char
|
|
* else
|
|
* search for next upper case
|
|
*/
|
|
if (!strncmp (object_name, "Gtk", 3))
|
|
object_arg = object_name + 3;
|
|
else if (!strncmp (object_name, "Gnome", 5))
|
|
object_arg = object_name + 5;
|
|
else
|
|
object_arg = object_name;
|
|
|
|
object_arg_lower = g_ascii_strdown (object_arg, -1);
|
|
sprintf (pos, "*%s\\n", object_arg_lower);
|
|
pos += strlen (pos);
|
|
if (!strncmp (object_arg_lower, "widget", 6))
|
|
widget_num = 2;
|
|
g_free(object_arg_lower);
|
|
|
|
/* Convert signal name to use underscores rather than dashes '-'. */
|
|
strncpy (signal_name, query_info.signal_name, 127);
|
|
signal_name[127] = '\\0';
|
|
for (i = 0; signal_name[i]; i++)
|
|
{
|
|
if (signal_name[i] == '-')
|
|
signal_name[i] = '_';
|
|
}
|
|
|
|
/* Output the signal parameters. */
|
|
for (param = 0; param < query_info.n_params; param++)
|
|
{
|
|
type_name = get_type_name (query_info.param_types[param] & ~G_SIGNAL_TYPE_STATIC_SCOPE, &is_pointer);
|
|
|
|
/* Most arguments to the callback are called "arg1", "arg2", etc.
|
|
GtkWidgets are called "widget", "widget2", ...
|
|
GtkCallbacks are called "callback", "callback2", ... */
|
|
if (!strcmp (type_name, "GtkWidget"))
|
|
{
|
|
arg_name = "widget";
|
|
arg_num = &widget_num;
|
|
}
|
|
else if (!strcmp (type_name, "GtkCallback")
|
|
|| !strcmp (type_name, "GtkCCallback"))
|
|
{
|
|
arg_name = "callback";
|
|
arg_num = &callback_num;
|
|
}
|
|
else
|
|
{
|
|
arg_name = "arg";
|
|
arg_num = ¶m_num;
|
|
}
|
|
sprintf (pos, "%s ", type_name);
|
|
pos += strlen (pos);
|
|
|
|
if (!arg_num || *arg_num == 0)
|
|
sprintf (pos, "%s%s\\n", is_pointer ? "*" : " ", arg_name);
|
|
else
|
|
sprintf (pos, "%s%s%i\\n", is_pointer ? "*" : " ", arg_name,
|
|
*arg_num);
|
|
pos += strlen (pos);
|
|
|
|
if (arg_num)
|
|
{
|
|
if (*arg_num == 0)
|
|
*arg_num = 2;
|
|
else
|
|
*arg_num += 1;
|
|
}
|
|
}
|
|
|
|
pos = flags;
|
|
/* We use one-character flags for simplicity. */
|
|
if (query_info.signal_flags & G_SIGNAL_RUN_FIRST)
|
|
*pos++ = 'f';
|
|
if (query_info.signal_flags & G_SIGNAL_RUN_LAST)
|
|
*pos++ = 'l';
|
|
if (query_info.signal_flags & G_SIGNAL_RUN_CLEANUP)
|
|
*pos++ = 'c';
|
|
if (query_info.signal_flags & G_SIGNAL_NO_RECURSE)
|
|
*pos++ = 'r';
|
|
if (query_info.signal_flags & G_SIGNAL_DETAILED)
|
|
*pos++ = 'd';
|
|
if (query_info.signal_flags & G_SIGNAL_ACTION)
|
|
*pos++ = 'a';
|
|
if (query_info.signal_flags & G_SIGNAL_NO_HOOKS)
|
|
*pos++ = 'h';
|
|
*pos = 0;
|
|
|
|
/* Output the return type and function name. */
|
|
ret_type = get_type_name (query_info.return_type & ~G_SIGNAL_TYPE_STATIC_SCOPE, &is_pointer);
|
|
|
|
fprintf (fp,
|
|
"<SIGNAL>\\n<NAME>%s::%s</NAME>\\n<RETURNS>%s%s</RETURNS>\\n<FLAGS>%s</FLAGS>\\n%s</SIGNAL>\\n\\n",
|
|
object_name, query_info.signal_name, ret_type, is_pointer ? "*" : "", flags, buffer);
|
|
}
|
|
|
|
|
|
/* Returns the type name to use for a signal argument or return value, given
|
|
the GtkType from the signal info. It also sets is_pointer to TRUE if the
|
|
argument needs a '*' since it is a pointer. */
|
|
static const gchar *
|
|
get_type_name (GType type, gboolean * is_pointer)
|
|
{
|
|
const gchar *type_name;
|
|
|
|
*is_pointer = FALSE;
|
|
type_name = g_type_name (type);
|
|
|
|
switch (type) {
|
|
case G_TYPE_NONE:
|
|
case G_TYPE_CHAR:
|
|
case G_TYPE_UCHAR:
|
|
case G_TYPE_BOOLEAN:
|
|
case G_TYPE_INT:
|
|
case G_TYPE_UINT:
|
|
case G_TYPE_LONG:
|
|
case G_TYPE_ULONG:
|
|
case G_TYPE_FLOAT:
|
|
case G_TYPE_DOUBLE:
|
|
case G_TYPE_POINTER:
|
|
/* These all have normal C type names so they are OK. */
|
|
return type_name;
|
|
|
|
case G_TYPE_STRING:
|
|
/* A GtkString is really a gchar*. */
|
|
*is_pointer = TRUE;
|
|
return "gchar";
|
|
|
|
case G_TYPE_ENUM:
|
|
case G_TYPE_FLAGS:
|
|
/* We use a gint for both of these. Hopefully a subtype with a decent
|
|
name will be registered and used instead, as GTK+ does itself. */
|
|
return "gint";
|
|
|
|
case G_TYPE_BOXED:
|
|
/* The boxed type shouldn't be used itself, only subtypes. Though we
|
|
return 'gpointer' just in case. */
|
|
return "gpointer";
|
|
|
|
case G_TYPE_PARAM:
|
|
/* A GParam is really a GParamSpec*. */
|
|
*is_pointer = TRUE;
|
|
return "GParamSpec";
|
|
|
|
#if GLIB_CHECK_VERSION (2, 25, 9)
|
|
case G_TYPE_VARIANT:
|
|
*is_pointer = TRUE;
|
|
return "GVariant";
|
|
#endif
|
|
|
|
default:
|
|
break;
|
|
}
|
|
|
|
/* For all GObject subclasses we can use the class name with a "*",
|
|
e.g. 'GtkWidget *'. */
|
|
if (g_type_is_a (type, G_TYPE_OBJECT))
|
|
*is_pointer = TRUE;
|
|
|
|
/* Also catch non GObject root types */
|
|
if (G_TYPE_IS_CLASSED (type))
|
|
*is_pointer = TRUE;
|
|
|
|
/* All boxed subtypes will be pointers as well. */
|
|
/* Exception: GStrv */
|
|
if (g_type_is_a (type, G_TYPE_BOXED) &&
|
|
!g_type_is_a (type, G_TYPE_STRV))
|
|
*is_pointer = TRUE;
|
|
|
|
/* All pointer subtypes will be pointers as well. */
|
|
if (g_type_is_a (type, G_TYPE_POINTER))
|
|
*is_pointer = TRUE;
|
|
|
|
/* But enums are not */
|
|
if (g_type_is_a (type, G_TYPE_ENUM) ||
|
|
g_type_is_a (type, G_TYPE_FLAGS))
|
|
*is_pointer = FALSE;
|
|
|
|
return type_name;
|
|
}
|
|
|
|
|
|
/* This outputs the hierarchy of all objects which have been initialized,
|
|
i.e. by calling their XXX_get_type() initialization function. */
|
|
static void
|
|
output_object_hierarchy (void)
|
|
{
|
|
FILE *fp;
|
|
gint i,j;
|
|
GType root, type;
|
|
GType root_types[$ntypes] = { G_TYPE_INVALID, };
|
|
|
|
fp = fopen (hierarchy_filename, "w");
|
|
if (fp == NULL)
|
|
{
|
|
g_warning ("Couldn't open output file: %s : %s", hierarchy_filename, g_strerror(errno));
|
|
return;
|
|
}
|
|
output_hierarchy (fp, G_TYPE_OBJECT, 0);
|
|
output_hierarchy (fp, G_TYPE_INTERFACE, 0);
|
|
|
|
for (i=0; object_types[i]; i++) {
|
|
root = object_types[i];
|
|
while ((type = g_type_parent (root))) {
|
|
root = type;
|
|
}
|
|
if ((root != G_TYPE_OBJECT) && (root != G_TYPE_INTERFACE)) {
|
|
for (j=0; root_types[j]; j++) {
|
|
if (root == root_types[j]) {
|
|
root = G_TYPE_INVALID; break;
|
|
}
|
|
}
|
|
if(root) {
|
|
root_types[j] = root;
|
|
output_hierarchy (fp, root, 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
fclose (fp);
|
|
}
|
|
|
|
static int
|
|
compare_types (const void *a, const void *b)
|
|
{
|
|
const char *na = g_type_name (*((GType *)a));
|
|
const char *nb = g_type_name (*((GType *)b));
|
|
|
|
return g_strcmp0 (na, nb);
|
|
}
|
|
|
|
|
|
/* This is called recursively to output the hierarchy of a object. */
|
|
static void
|
|
output_hierarchy (FILE *fp,
|
|
GType type,
|
|
guint level)
|
|
{
|
|
guint i;
|
|
GType *children;
|
|
guint n_children;
|
|
|
|
if (!type)
|
|
return;
|
|
|
|
for (i = 0; i < level; i++)
|
|
fprintf (fp, " ");
|
|
fprintf (fp, "%s\\n", g_type_name (type));
|
|
|
|
children = g_type_children (type, &n_children);
|
|
qsort (children, n_children, sizeof (GType), compare_types);
|
|
|
|
|
|
for (i=0; i < n_children; i++)
|
|
output_hierarchy (fp, children[i], level + 1);
|
|
|
|
g_free (children);
|
|
}
|
|
|
|
static void output_object_interfaces (void)
|
|
{
|
|
guint i;
|
|
FILE *fp;
|
|
|
|
fp = fopen (interfaces_filename, "w");
|
|
if (fp == NULL)
|
|
{
|
|
g_warning ("Couldn't open output file: %s : %s", interfaces_filename, g_strerror(errno));
|
|
return;
|
|
}
|
|
output_interfaces (fp, G_TYPE_OBJECT);
|
|
|
|
for (i = 0; object_types[i]; i++)
|
|
{
|
|
if (!g_type_parent (object_types[i]) &&
|
|
(object_types[i] != G_TYPE_OBJECT) &&
|
|
G_TYPE_IS_INSTANTIATABLE (object_types[i]))
|
|
{
|
|
output_interfaces (fp, object_types[i]);
|
|
}
|
|
}
|
|
fclose (fp);
|
|
}
|
|
|
|
static void
|
|
output_interfaces (FILE *fp,
|
|
GType type)
|
|
{
|
|
guint i;
|
|
GType *children, *interfaces;
|
|
guint n_children, n_interfaces;
|
|
|
|
if (!type)
|
|
return;
|
|
|
|
interfaces = g_type_interfaces (type, &n_interfaces);
|
|
|
|
if (n_interfaces > 0)
|
|
{
|
|
fprintf (fp, "%s", g_type_name (type));
|
|
for (i=0; i < n_interfaces; i++)
|
|
fprintf (fp, " %s", g_type_name (interfaces[i]));
|
|
fprintf (fp, "\\n");
|
|
}
|
|
g_free (interfaces);
|
|
|
|
children = g_type_children (type, &n_children);
|
|
|
|
for (i=0; i < n_children; i++)
|
|
output_interfaces (fp, children[i]);
|
|
|
|
g_free (children);
|
|
}
|
|
|
|
static void output_interface_prerequisites (void)
|
|
{
|
|
FILE *fp;
|
|
|
|
fp = fopen (prerequisites_filename, "w");
|
|
if (fp == NULL)
|
|
{
|
|
g_warning ("Couldn't open output file: %s : %s", prerequisites_filename, g_strerror(errno));
|
|
return;
|
|
}
|
|
output_prerequisites (fp, G_TYPE_INTERFACE);
|
|
fclose (fp);
|
|
}
|
|
|
|
static void
|
|
output_prerequisites (FILE *fp,
|
|
GType type)
|
|
{
|
|
#if GLIB_CHECK_VERSION(2,1,0)
|
|
guint i;
|
|
GType *children, *prerequisites;
|
|
guint n_children, n_prerequisites;
|
|
|
|
if (!type)
|
|
return;
|
|
|
|
prerequisites = g_type_interface_prerequisites (type, &n_prerequisites);
|
|
|
|
if (n_prerequisites > 0)
|
|
{
|
|
fprintf (fp, "%s", g_type_name (type));
|
|
for (i=0; i < n_prerequisites; i++)
|
|
fprintf (fp, " %s", g_type_name (prerequisites[i]));
|
|
fprintf (fp, "\\n");
|
|
}
|
|
g_free (prerequisites);
|
|
|
|
children = g_type_children (type, &n_children);
|
|
|
|
for (i=0; i < n_children; i++)
|
|
output_prerequisites (fp, children[i]);
|
|
|
|
g_free (children);
|
|
#endif
|
|
}
|
|
|
|
static void
|
|
output_args (void)
|
|
{
|
|
FILE *fp;
|
|
gint i;
|
|
|
|
fp = fopen (args_filename, "w");
|
|
if (fp == NULL)
|
|
{
|
|
g_warning ("Couldn't open output file: %s : %s", args_filename, g_strerror(errno));
|
|
return;
|
|
}
|
|
|
|
for (i = 0; object_types[i]; i++) {
|
|
output_object_args (fp, object_types[i]);
|
|
}
|
|
|
|
fclose (fp);
|
|
}
|
|
|
|
static gint
|
|
compare_param_specs (const void *a, const void *b)
|
|
{
|
|
GParamSpec *spec_a = *(GParamSpec **)a;
|
|
GParamSpec *spec_b = *(GParamSpec **)b;
|
|
|
|
return strcmp (g_param_spec_get_name (spec_a), g_param_spec_get_name (spec_b));
|
|
}
|
|
|
|
/* Its common to have unsigned properties restricted
|
|
* to the signed range. Therefore we make this look
|
|
* a bit nicer by spelling out the max constants.
|
|
*/
|
|
|
|
/* Don't use "==" with floats, it might trigger a gcc warning. */
|
|
#define GTKDOC_COMPARE_FLOAT(x, y) (x <= y && x >= y)
|
|
|
|
static gchar*
|
|
describe_double_constant (gdouble value)
|
|
{
|
|
gchar *desc;
|
|
|
|
if (GTKDOC_COMPARE_FLOAT (value, G_MAXDOUBLE))
|
|
desc = g_strdup ("G_MAXDOUBLE");
|
|
else if (GTKDOC_COMPARE_FLOAT (value, G_MINDOUBLE))
|
|
desc = g_strdup ("G_MINDOUBLE");
|
|
else if (GTKDOC_COMPARE_FLOAT (value, -G_MAXDOUBLE))
|
|
desc = g_strdup ("-G_MAXDOUBLE");
|
|
else if (GTKDOC_COMPARE_FLOAT (value, G_MAXFLOAT))
|
|
desc = g_strdup ("G_MAXFLOAT");
|
|
else if (GTKDOC_COMPARE_FLOAT (value, G_MINFLOAT))
|
|
desc = g_strdup ("G_MINFLOAT");
|
|
else if (GTKDOC_COMPARE_FLOAT (value, -G_MAXFLOAT))
|
|
desc = g_strdup ("-G_MAXFLOAT");
|
|
else{
|
|
/* make sure floats are output with a decimal dot irrespective of
|
|
* current locale. Use formatd since we want human-readable numbers
|
|
* and do not need the exact same bit representation when deserialising */
|
|
desc = g_malloc0 (G_ASCII_DTOSTR_BUF_SIZE);
|
|
g_ascii_formatd (desc, G_ASCII_DTOSTR_BUF_SIZE, "%g", value);
|
|
}
|
|
|
|
return desc;
|
|
}
|
|
|
|
static gchar*
|
|
describe_signed_constant (gsize size, gint64 value)
|
|
{
|
|
gchar *desc = NULL;
|
|
|
|
switch (size) {
|
|
case 8:
|
|
if (value == G_MAXINT64)
|
|
desc = g_strdup ("G_MAXINT64");
|
|
else if (value == G_MININT64)
|
|
desc = g_strdup ("G_MININT64");
|
|
/* fall through */
|
|
case 4:
|
|
if (sizeof (int) == 4) {
|
|
if (value == G_MAXINT)
|
|
desc = g_strdup ("G_MAXINT");
|
|
else if (value == G_MININT)
|
|
desc = g_strdup ("G_MININT");
|
|
else if (value == (gint64)G_MAXUINT)
|
|
desc = g_strdup ("G_MAXUINT");
|
|
}
|
|
if (value == G_MAXLONG)
|
|
desc = g_strdup ("G_MAXLONG");
|
|
else if (value == G_MINLONG)
|
|
desc = g_strdup ("G_MINLONG");
|
|
else if (value == (gint64)G_MAXULONG)
|
|
desc = g_strdup ("G_MAXULONG");
|
|
/* fall through */
|
|
case 2:
|
|
if (sizeof (int) == 2) {
|
|
if (value == G_MAXINT)
|
|
desc = g_strdup ("G_MAXINT");
|
|
else if (value == G_MININT)
|
|
desc = g_strdup ("G_MININT");
|
|
else if (value == (gint64)G_MAXUINT)
|
|
desc = g_strdup ("G_MAXUINT");
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
if (!desc)
|
|
desc = g_strdup_printf ("%" G_GINT64_FORMAT, value);
|
|
|
|
return desc;
|
|
}
|
|
|
|
static gchar*
|
|
describe_unsigned_constant (gsize size, guint64 value)
|
|
{
|
|
gchar *desc = NULL;
|
|
|
|
switch (size) {
|
|
case 8:
|
|
if (value == G_MAXINT64)
|
|
desc = g_strdup ("G_MAXINT64");
|
|
else if (value == G_MAXUINT64)
|
|
desc = g_strdup ("G_MAXUINT64");
|
|
/* fall through */
|
|
case 4:
|
|
if (sizeof (int) == 4) {
|
|
if (value == (guint64)G_MAXINT)
|
|
desc = g_strdup ("G_MAXINT");
|
|
else if (value == G_MAXUINT)
|
|
desc = g_strdup ("G_MAXUINT");
|
|
}
|
|
if (value == (guint64)G_MAXLONG)
|
|
desc = g_strdup ("G_MAXLONG");
|
|
else if (value == G_MAXULONG)
|
|
desc = g_strdup ("G_MAXULONG");
|
|
/* fall through */
|
|
case 2:
|
|
if (sizeof (int) == 2) {
|
|
if (value == (guint64)G_MAXINT)
|
|
desc = g_strdup ("G_MAXINT");
|
|
else if (value == G_MAXUINT)
|
|
desc = g_strdup ("G_MAXUINT");
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
if (!desc)
|
|
desc = g_strdup_printf ("%" G_GUINT64_FORMAT, value);
|
|
|
|
return desc;
|
|
}
|
|
|
|
static gchar*
|
|
describe_type (GParamSpec *spec)
|
|
{
|
|
gchar *desc;
|
|
gchar *lower;
|
|
gchar *upper;
|
|
|
|
if (G_IS_PARAM_SPEC_CHAR (spec))
|
|
{
|
|
GParamSpecChar *pspec = G_PARAM_SPEC_CHAR (spec);
|
|
|
|
lower = describe_signed_constant (sizeof(gchar), pspec->minimum);
|
|
upper = describe_signed_constant (sizeof(gchar), pspec->maximum);
|
|
if (pspec->minimum == G_MININT8 && pspec->maximum == G_MAXINT8)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == G_MININT8)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXINT8)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UCHAR (spec))
|
|
{
|
|
GParamSpecUChar *pspec = G_PARAM_SPEC_UCHAR (spec);
|
|
|
|
lower = describe_unsigned_constant (sizeof(guchar), pspec->minimum);
|
|
upper = describe_unsigned_constant (sizeof(guchar), pspec->maximum);
|
|
if (pspec->minimum == 0 && pspec->maximum == G_MAXUINT8)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == 0)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXUINT8)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_INT (spec))
|
|
{
|
|
GParamSpecInt *pspec = G_PARAM_SPEC_INT (spec);
|
|
|
|
lower = describe_signed_constant (sizeof(gint), pspec->minimum);
|
|
upper = describe_signed_constant (sizeof(gint), pspec->maximum);
|
|
if (pspec->minimum == G_MININT && pspec->maximum == G_MAXINT)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == G_MININT)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXINT)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UINT (spec))
|
|
{
|
|
GParamSpecUInt *pspec = G_PARAM_SPEC_UINT (spec);
|
|
|
|
lower = describe_unsigned_constant (sizeof(guint), pspec->minimum);
|
|
upper = describe_unsigned_constant (sizeof(guint), pspec->maximum);
|
|
if (pspec->minimum == 0 && pspec->maximum == G_MAXUINT)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == 0)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXUINT)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_LONG (spec))
|
|
{
|
|
GParamSpecLong *pspec = G_PARAM_SPEC_LONG (spec);
|
|
|
|
lower = describe_signed_constant (sizeof(glong), pspec->minimum);
|
|
upper = describe_signed_constant (sizeof(glong), pspec->maximum);
|
|
if (pspec->minimum == G_MINLONG && pspec->maximum == G_MAXLONG)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == G_MINLONG)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXLONG)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_ULONG (spec))
|
|
{
|
|
GParamSpecULong *pspec = G_PARAM_SPEC_ULONG (spec);
|
|
|
|
lower = describe_unsigned_constant (sizeof(gulong), pspec->minimum);
|
|
upper = describe_unsigned_constant (sizeof(gulong), pspec->maximum);
|
|
if (pspec->minimum == 0 && pspec->maximum == G_MAXULONG)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == 0)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXULONG)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_INT64 (spec))
|
|
{
|
|
GParamSpecInt64 *pspec = G_PARAM_SPEC_INT64 (spec);
|
|
|
|
lower = describe_signed_constant (sizeof(gint64), pspec->minimum);
|
|
upper = describe_signed_constant (sizeof(gint64), pspec->maximum);
|
|
if (pspec->minimum == G_MININT64 && pspec->maximum == G_MAXINT64)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == G_MININT64)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXINT64)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UINT64 (spec))
|
|
{
|
|
GParamSpecUInt64 *pspec = G_PARAM_SPEC_UINT64 (spec);
|
|
|
|
lower = describe_unsigned_constant (sizeof(guint64), pspec->minimum);
|
|
upper = describe_unsigned_constant (sizeof(guint64), pspec->maximum);
|
|
if (pspec->minimum == 0 && pspec->maximum == G_MAXUINT64)
|
|
desc = g_strdup ("");
|
|
else if (pspec->minimum == 0)
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
else if (pspec->maximum == G_MAXUINT64)
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_FLOAT (spec))
|
|
{
|
|
GParamSpecFloat *pspec = G_PARAM_SPEC_FLOAT (spec);
|
|
|
|
lower = describe_double_constant (pspec->minimum);
|
|
upper = describe_double_constant (pspec->maximum);
|
|
if (GTKDOC_COMPARE_FLOAT (pspec->minimum, -G_MAXFLOAT))
|
|
{
|
|
if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXFLOAT))
|
|
desc = g_strdup ("");
|
|
else
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
}
|
|
else if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXFLOAT))
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_DOUBLE (spec))
|
|
{
|
|
GParamSpecDouble *pspec = G_PARAM_SPEC_DOUBLE (spec);
|
|
|
|
lower = describe_double_constant (pspec->minimum);
|
|
upper = describe_double_constant (pspec->maximum);
|
|
if (GTKDOC_COMPARE_FLOAT (pspec->minimum, -G_MAXDOUBLE))
|
|
{
|
|
if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXDOUBLE))
|
|
desc = g_strdup ("");
|
|
else
|
|
desc = g_strdup_printf ("<= %s", upper);
|
|
}
|
|
else if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXDOUBLE))
|
|
desc = g_strdup_printf (">= %s", lower);
|
|
else
|
|
desc = g_strdup_printf ("[%s,%s]", lower, upper);
|
|
g_free (lower);
|
|
g_free (upper);
|
|
}
|
|
#if GLIB_CHECK_VERSION (2, 12, 0)
|
|
else if (G_IS_PARAM_SPEC_GTYPE (spec))
|
|
{
|
|
GParamSpecGType *pspec = G_PARAM_SPEC_GTYPE (spec);
|
|
gboolean is_pointer;
|
|
|
|
desc = g_strdup (get_type_name (pspec->is_a_type, &is_pointer));
|
|
}
|
|
#endif
|
|
#if GLIB_CHECK_VERSION (2, 25, 9)
|
|
else if (G_IS_PARAM_SPEC_VARIANT (spec))
|
|
{
|
|
GParamSpecVariant *pspec = G_PARAM_SPEC_VARIANT (spec);
|
|
gchar *variant_type;
|
|
|
|
variant_type = g_variant_type_dup_string (pspec->type);
|
|
desc = g_strdup_printf ("GVariant<%s>", variant_type);
|
|
g_free (variant_type);
|
|
}
|
|
#endif
|
|
else
|
|
{
|
|
desc = g_strdup ("");
|
|
}
|
|
|
|
return desc;
|
|
}
|
|
|
|
static gchar*
|
|
describe_default (GParamSpec *spec)
|
|
{
|
|
gchar *desc;
|
|
|
|
if (G_IS_PARAM_SPEC_CHAR (spec))
|
|
{
|
|
GParamSpecChar *pspec = G_PARAM_SPEC_CHAR (spec);
|
|
|
|
desc = g_strdup_printf ("%d", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UCHAR (spec))
|
|
{
|
|
GParamSpecUChar *pspec = G_PARAM_SPEC_UCHAR (spec);
|
|
|
|
desc = g_strdup_printf ("%u", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_BOOLEAN (spec))
|
|
{
|
|
GParamSpecBoolean *pspec = G_PARAM_SPEC_BOOLEAN (spec);
|
|
|
|
desc = g_strdup_printf ("%s", pspec->default_value ? "TRUE" : "FALSE");
|
|
}
|
|
else if (G_IS_PARAM_SPEC_INT (spec))
|
|
{
|
|
GParamSpecInt *pspec = G_PARAM_SPEC_INT (spec);
|
|
|
|
desc = g_strdup_printf ("%d", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UINT (spec))
|
|
{
|
|
GParamSpecUInt *pspec = G_PARAM_SPEC_UINT (spec);
|
|
|
|
desc = g_strdup_printf ("%u", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_LONG (spec))
|
|
{
|
|
GParamSpecLong *pspec = G_PARAM_SPEC_LONG (spec);
|
|
|
|
desc = g_strdup_printf ("%ld", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_LONG (spec))
|
|
{
|
|
GParamSpecULong *pspec = G_PARAM_SPEC_ULONG (spec);
|
|
|
|
desc = g_strdup_printf ("%lu", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_INT64 (spec))
|
|
{
|
|
GParamSpecInt64 *pspec = G_PARAM_SPEC_INT64 (spec);
|
|
|
|
desc = g_strdup_printf ("%" G_GINT64_FORMAT, pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UINT64 (spec))
|
|
{
|
|
GParamSpecUInt64 *pspec = G_PARAM_SPEC_UINT64 (spec);
|
|
|
|
desc = g_strdup_printf ("%" G_GUINT64_FORMAT, pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_UNICHAR (spec))
|
|
{
|
|
GParamSpecUnichar *pspec = G_PARAM_SPEC_UNICHAR (spec);
|
|
|
|
if (g_unichar_isprint (pspec->default_value))
|
|
desc = g_strdup_printf ("'%c'", pspec->default_value);
|
|
else
|
|
desc = g_strdup_printf ("%u", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_ENUM (spec))
|
|
{
|
|
GParamSpecEnum *pspec = G_PARAM_SPEC_ENUM (spec);
|
|
|
|
GEnumValue *value = g_enum_get_value (pspec->enum_class, pspec->default_value);
|
|
if (value)
|
|
desc = g_strdup_printf ("%s", value->value_name);
|
|
else
|
|
desc = g_strdup_printf ("%d", pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_FLAGS (spec))
|
|
{
|
|
GParamSpecFlags *pspec = G_PARAM_SPEC_FLAGS (spec);
|
|
guint default_value;
|
|
GString *acc;
|
|
|
|
default_value = pspec->default_value;
|
|
acc = g_string_new ("");
|
|
|
|
while (default_value)
|
|
{
|
|
GFlagsValue *value = g_flags_get_first_value (pspec->flags_class, default_value);
|
|
|
|
if (!value)
|
|
break;
|
|
|
|
if (acc->len > 0)
|
|
g_string_append (acc, "|");
|
|
g_string_append (acc, value->value_name);
|
|
|
|
default_value &= ~value->value;
|
|
}
|
|
|
|
if (default_value == 0)
|
|
desc = g_string_free (acc, FALSE);
|
|
else
|
|
{
|
|
desc = g_strdup_printf ("%d", pspec->default_value);
|
|
g_string_free (acc, TRUE);
|
|
}
|
|
}
|
|
else if (G_IS_PARAM_SPEC_FLOAT (spec))
|
|
{
|
|
GParamSpecFloat *pspec = G_PARAM_SPEC_FLOAT (spec);
|
|
|
|
/* make sure floats are output with a decimal dot irrespective of
|
|
* current locale. Use formatd since we want human-readable numbers
|
|
* and do not need the exact same bit representation when deserialising */
|
|
desc = g_malloc0 (G_ASCII_DTOSTR_BUF_SIZE);
|
|
g_ascii_formatd (desc, G_ASCII_DTOSTR_BUF_SIZE, "%g",
|
|
pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_DOUBLE (spec))
|
|
{
|
|
GParamSpecDouble *pspec = G_PARAM_SPEC_DOUBLE (spec);
|
|
|
|
/* make sure floats are output with a decimal dot irrespective of
|
|
* current locale. Use formatd since we want human-readable numbers
|
|
* and do not need the exact same bit representation when deserialising */
|
|
desc = g_malloc0 (G_ASCII_DTOSTR_BUF_SIZE);
|
|
g_ascii_formatd (desc, G_ASCII_DTOSTR_BUF_SIZE, "%g",
|
|
pspec->default_value);
|
|
}
|
|
else if (G_IS_PARAM_SPEC_STRING (spec))
|
|
{
|
|
GParamSpecString *pspec = G_PARAM_SPEC_STRING (spec);
|
|
|
|
if (pspec->default_value)
|
|
{
|
|
gchar *esc = g_strescape (pspec->default_value, NULL);
|
|
|
|
desc = g_strdup_printf ("\\"%s\\"", esc);
|
|
|
|
g_free (esc);
|
|
}
|
|
else
|
|
desc = g_strdup_printf ("NULL");
|
|
}
|
|
else
|
|
{
|
|
desc = g_strdup ("");
|
|
}
|
|
|
|
return desc;
|
|
}
|
|
|
|
|
|
static void
|
|
output_object_args (FILE *fp, GType object_type)
|
|
{
|
|
gpointer class;
|
|
const gchar *object_class_name;
|
|
guint arg;
|
|
gchar flags[16], *pos;
|
|
GParamSpec **properties;
|
|
guint n_properties;
|
|
gboolean child_prop;
|
|
gboolean style_prop;
|
|
gboolean is_pointer;
|
|
const gchar *type_name;
|
|
gchar *type_desc;
|
|
gchar *default_value;
|
|
|
|
if (G_TYPE_IS_OBJECT (object_type))
|
|
{
|
|
class = g_type_class_peek (object_type);
|
|
if (!class)
|
|
return;
|
|
|
|
properties = g_object_class_list_properties (class, &n_properties);
|
|
}
|
|
#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 3)
|
|
else if (G_TYPE_IS_INTERFACE (object_type))
|
|
{
|
|
class = g_type_default_interface_ref (object_type);
|
|
|
|
if (!class)
|
|
return;
|
|
|
|
properties = g_object_interface_list_properties (class, &n_properties);
|
|
}
|
|
#endif
|
|
else
|
|
return;
|
|
|
|
object_class_name = g_type_name (object_type);
|
|
|
|
child_prop = FALSE;
|
|
style_prop = FALSE;
|
|
|
|
while (TRUE) {
|
|
qsort (properties, n_properties, sizeof (GParamSpec *), compare_param_specs);
|
|
for (arg = 0; arg < n_properties; arg++)
|
|
{
|
|
GParamSpec *spec = properties[arg];
|
|
const gchar *nick, *blurb, *dot;
|
|
|
|
if (spec->owner_type != object_type)
|
|
continue;
|
|
|
|
pos = flags;
|
|
/* We use one-character flags for simplicity. */
|
|
if (child_prop && !style_prop)
|
|
*pos++ = 'c';
|
|
if (style_prop)
|
|
*pos++ = 's';
|
|
if (spec->flags & G_PARAM_READABLE)
|
|
*pos++ = 'r';
|
|
if (spec->flags & G_PARAM_WRITABLE)
|
|
*pos++ = 'w';
|
|
if (spec->flags & G_PARAM_CONSTRUCT)
|
|
*pos++ = 'x';
|
|
if (spec->flags & G_PARAM_CONSTRUCT_ONLY)
|
|
*pos++ = 'X';
|
|
*pos = 0;
|
|
|
|
nick = g_param_spec_get_nick (spec);
|
|
blurb = g_param_spec_get_blurb (spec);
|
|
|
|
dot = "";
|
|
if (blurb) {
|
|
int str_len = strlen (blurb);
|
|
if (str_len > 0 && blurb[str_len - 1] != '.')
|
|
dot = ".";
|
|
}
|
|
|
|
type_desc = describe_type (spec);
|
|
default_value = describe_default (spec);
|
|
type_name = get_type_name (spec->value_type, &is_pointer);
|
|
fprintf (fp, "<ARG>\\n<NAME>%s::%s</NAME>\\n<TYPE>%s%s</TYPE>\\n<RANGE>%s</RANGE>\\n<FLAGS>%s</FLAGS>\\n<NICK>%s</NICK>\\n<BLURB>%s%s</BLURB>\\n<DEFAULT>%s</DEFAULT>\\n</ARG>\\n\\n",
|
|
object_class_name, g_param_spec_get_name (spec), type_name, is_pointer ? "*" : "", type_desc, flags, nick ? nick : "(null)", blurb ? blurb : "(null)", dot, default_value);
|
|
g_free (type_desc);
|
|
g_free (default_value);
|
|
}
|
|
|
|
g_free (properties);
|
|
|
|
#ifdef GTK_IS_CONTAINER_CLASS
|
|
if (!child_prop && GTK_IS_CONTAINER_CLASS (class)) {
|
|
properties = gtk_container_class_list_child_properties (class, &n_properties);
|
|
child_prop = TRUE;
|
|
continue;
|
|
}
|
|
#endif
|
|
|
|
#ifdef GTK_IS_CELL_AREA_CLASS
|
|
if (!child_prop && GTK_IS_CELL_AREA_CLASS (class)) {
|
|
properties = gtk_cell_area_class_list_cell_properties (class, &n_properties);
|
|
child_prop = TRUE;
|
|
continue;
|
|
}
|
|
#endif
|
|
|
|
#ifdef GTK_IS_WIDGET_CLASS
|
|
#if GTK_CHECK_VERSION(2,1,0)
|
|
if (!style_prop && GTK_IS_WIDGET_CLASS (class)) {
|
|
properties = gtk_widget_class_list_style_properties (GTK_WIDGET_CLASS (class), &n_properties);
|
|
style_prop = TRUE;
|
|
continue;
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
break;
|
|
}
|
|
}
|
|
EOT
|
|
|
|
close OUTPUT;
|
|
|
|
# Compile and run our file
|
|
|
|
$CC = $ENV{CC} ? $ENV{CC} : "gcc";
|
|
$LD = $ENV{LD} ? $ENV{LD} : $CC;
|
|
$CFLAGS = $ENV{CFLAGS} ? "$ENV{CFLAGS}" : "";
|
|
$LDFLAGS = $ENV{LDFLAGS} ? $ENV{LDFLAGS} : "";
|
|
|
|
my $o_file;
|
|
if ($CC =~ /libtool/) {
|
|
$o_file = "$MODULE-scan.lo"
|
|
} else {
|
|
$o_file = "$MODULE-scan.o"
|
|
}
|
|
|
|
my $stdout="";
|
|
if (!defined($VERBOSE) or $VERBOSE eq "0") {
|
|
$stdout=">/dev/null";
|
|
}
|
|
|
|
# Compiling scanner
|
|
$command = "$CC $stdout $CFLAGS -c -o $o_file $MODULE-scan.c";
|
|
system("($command)") == 0 or die "Compilation of scanner failed: $!\n";
|
|
|
|
# Linking scanner
|
|
$command = "$LD $stdout -o $MODULE-scan $o_file $LDFLAGS";
|
|
system($command) == 0 or die "Linking of scanner failed: $!\n";
|
|
|
|
# Running scanner $MODULE-scan ";
|
|
system("sh -c ./$MODULE-scan") == 0 or die "Scan failed: $!\n";
|
|
|
|
if (!defined($ENV{"GTK_DOC_KEEP_INTERMEDIATE"})) {
|
|
unlink "./$MODULE-scan.c", "./$MODULE-scan.o", "./$MODULE-scan.lo", "./$MODULE-scan";
|
|
}
|
|
|
|
&UpdateFileIfChanged ($old_hierarchy_filename, $new_hierarchy_filename, 0);
|
|
# we will merge these in scangobj-merge.py
|
|
#&UpdateFileIfChanged ($old_interfaces_filename, $new_interfaces_filename, 0);
|
|
#&UpdateFileIfChanged ($old_prerequisites_filename, $new_prerequisites_filename, 0);
|
|
#&UpdateFileIfChanged ($old_signals_filename, $new_signals_filename, 0);
|
|
#&UpdateFileIfChanged ($old_args_filename, $new_args_filename, 0);
|
|
|