summaryrefslogtreecommitdiff
path: root/gio
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '2409-application-must-be-registered' into 'main'Philip Withnall2021-06-101-0/+3
|\ | | | | | | | | | | | | gapplication: Guard g_application_mark_busy() Closes #2409 See merge request GNOME/glib!2111
| * gapplication: Guard g_application_mark_busy()Peter Bloomfield2021-05-171-0/+3
| | | | | | | | | | | | | | | | The `GApplication` must be registered before calling `g_application_mark_busy()`. Document that, and add a guard. The same is true for `g_application_unmark_busy()`, but the existing documentation and guard for `busy_count > 0` are enough.
* | gdbusconnection: Fix a typo in a code commentPhilip Withnall2021-06-101-1/+1
| | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | docs: Fix capitalisation of ‘GUID’ in a few placesPhilip Withnall2021-06-102-2/+2
| | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | docs: Expand documentation about D-Bus GUIDsPhilip Withnall2021-06-103-5/+22
| | | | | | | | | | | | | | Clarify that the terms ‘GUID’ and ‘UUID’ are used interchangeably in the context of D-Bus, and that neither of them are an RFC 4122 UUID. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | tls: expose SAN details on GTlsCertificateRoss Wollman2021-06-104-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset exposes * `dns-names` * `ip-addresses` on GTlsCertificate provided by the underlying TLS Backend. See https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/165 for the corresponding glib-networking changes. Relates: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2113 Relates: https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/156/diffs Relates: https://github.com/microsoft/playwright/issues/6759
* | Merge branch 'confusing_errors' into 'main'Philip Withnall2021-06-091-5/+22
|\ \ | | | | | | | | | | | | | | | | | | gdbusconnection: removed a confusing message Closes #793 See merge request GNOME/glib!2118
| * | gdbusconnection: removed a confusing messagenitinosiris2021-06-081-5/+22
| |/ | | | | | | | | | | | | | | The message `No such interface %s on object at path %s` displayed when requested object does not exist, which was kind of confusing. Closes #793
* | Merge branch 'fix/accidental-dllexport' into 'main'Philip Withnall2021-06-072-2/+2
|\ \ | | | | | | | | | | | | gdbus, win32: Fix accidental dllexport in static builds See merge request GNOME/glib!2139
| * | gdbus, win32: Fix accidental dllexport in static buildsOle André Vadla Ravnås2021-06-072-2/+2
| | | | | | | | | | | | Should only dllexport g_win32_run_session_bus() when building a DLL.
* | | Merge branch '2348-rename-master' into 'master'Philip Withnall2021-06-079-17/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Rename default development branch to main Closes #2348 See merge request GNOME/glib!2140
| * | | docs: Update various external links to use HEAD instead of masterPhilip Withnall2021-06-079-17/+17
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update several links to allow the remote to use its configured default branch name, rather than specifying `master` as the default branch name. This will help avoid breakage if any of these projects rename their default branch in the future. Fix a few of the links where they were hitting redirects or had moved. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2348
* | | tests: Add missing setlocale() call to file testsPhilip Withnall2021-06-071-0/+3
| | | | | | | | | | | | | | | | | | | | | This ensures that non-ASCII characters in the test output are printed correctly in the logs. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | glocalfileoutputstream: Fix ETag check when replacing through a symlinkPhilip Withnall2021-06-072-1/+150
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 87e19535fe, the ETag check when writing out a file through a symlink (following the symlink) has been incorrectly using the ETag value of the symlink, rather than the target file. This is incorrect because the ETag should represent the file content, not its metadata or links to it. Fix that, and add a unit test. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2417
* | Merge branch '2416-tls-certificate-fix-invalid-read' into 'master'Philip Withnall2021-06-072-3/+38
|\ \ | | | | | | | | | | | | | | | | | | tests/tls-certificate: Add a unit test Closes #2416 See merge request GNOME/glib!2136
| * | tests/tls-certificate: Add context to the new testPeter Bloomfield2021-06-051-0/+4
| | | | | | | | | | | | | | | Add a comment to `pem_parser_no_sentinel()` to explain what it is testing and how it works.
| * | tlscertificate: Avoid possible invalid readPeter Bloomfield2021-06-041-3/+4
| | | | | | | | | | | | | | | In various places, do not read past the end of the data. Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/2416
| * | tests/tls-certificate: Add a unit testPeter Bloomfield2021-06-041-0/+30
| | | | | | | | | | | | | | | | | | | | | Test whether g_tls_certificate_new_from_pem() can handle a non-nul-terminated PEM. Helps https://gitlab.gnome.org/GNOME/glib/-/issues/2416
* | | Merge branch 'wip/issue-1884' into 'master'Philip Withnall2021-06-045-17/+40
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gsettings: Resolve child schemas from the parent's schema source Closes #1884 See merge request GNOME/glib!2132
| * | | gsettings: Resolve child schemas from the parent's schema sourceChristian Persch2021-06-045-17/+40
| | | |
* | | | Merge branch 'mcatanzaro/tls-info' into 'master'Philip Withnall2021-06-045-0/+238
|\ \ \ \ | |/ / / |/| | | | | | | | | | | tls: add functions to get protocol version and ciphersuite name See merge request GNOME/glib!2077
| * | | tls: add functions to get protocol version and ciphersuite nameMichael Catanzaro2021-06-035-0/+238
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This adds g_tls_connection_get_protocol_version(), g_tls_connection_get_ciphersuite_name(), and DTLS variants. This will allow populating TLS connection information in the WebKit web inspector. This is WIP because we found it's not quite possibly to implement correctly with GnuTLS. See glib-networking!151.
* | | inotify: Fix a memory leakGaël Bonithon2021-06-032-8/+1
|/ / | | | | | | Fixes: #2311
* | Merge branch '2227-gdbus-nullability' into 'master'Philip Withnall2021-06-036-19/+27
|\ \ | | | | | | | | | | | | gdbus: Add various missing (nullable) or (not nullable) annotations See merge request GNOME/glib!2123
| * | gdbus: Add various missing (nullable) or (not nullable) annotationsPhilip Withnall2021-06-036-19/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the result of checking each `Returns:` line in these files. I’ve only considered nullability and not other (potentially missing or incorrect) annotations. Including suggestions by Simon McVittie. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2227
* | | Merge branch 'pgriffis/pkcs11-password' into 'master'Philip Withnall2021-06-021-1/+10
|\ \ \ | | | | | | | | | | | | | | | | gtlspassword: Add flags signifying PIN type for PKCS#11 See merge request GNOME/glib!2126
| * | | gtlspassword: Add flags signifying PIN type for PKCS#11Patrick Griffis2021-06-011-1/+10
| |/ / | | | | | | | | | | | | | | | | | | In a PKCS#11 operation there are multiple types of PINs possibly needed and these flags add a way to expose them to the user. This design exactly matches gnutls' gnutls_pin_flag_t API.
* | | Merge branch 'feature/cert-info' into 'master'Michael Catanzaro2021-06-014-0/+282
|\ \ \ | |/ / |/| | | | | | | | tls: expose cert details on GTlsCertificate See merge request GNOME/glib!2113
| * | tls: expose cert details on GTlsCertificateRoss A. Wollman2021-06-014-0/+282
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset exposes * `not-valid-before` * `not-valid-after` * `subject-name` * `issuer-name` on GTlsCertificate provided by the underlying TLS Backend. In order to make use of these changes, see the related [glib-networking MR][glib-networking]. This change aims to help populate more of the [`Certificate`][wk-cert] info in the WebKit Inspector Protocol on Linux. This changeset stems from work in Microsoft Playwright to [add more info into its HAR capture][pw] generated from the Inspector Protocol events and will bring feature parity across WebKit platforms. [wk-cert]: https://github.com/WebKit/WebKit/blob/8afe31a018b11741abdf9b4d5bb973d7c1d9ff05/Source/JavaScriptCore/inspector/protocol/Security.json [pw]: https://github.com/microsoft/playwright/pull/6631 [glib-networking]: https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/156
* | Fix missing initializer warning in gio/tests/gdbus-exit-on-close.cEmmanuel Fleury2021-05-271-1/+1
| | | | | | | | | | | | gio/tests/gdbus-exit-on-close.c:52:14: warning: missing field 'bug' initializer { NULL } ^
* | Fix missing initializer warnings in gio/tests/socket.cEmmanuel Fleury2021-05-271-7/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | gio/tests/socket.c:505:36: warning: missing field 'size' initializer GOutputVector v[7] = { { NULL, }, }; ^ gio/tests/socket.c:630:37: warning: missing field 'vectors' initializer GOutputMessage m[3] = { { NULL, }, }; ^ gio/tests/socket.c:631:37: warning: missing field 'vectors' initializer GInputMessage im[3] = { { NULL, }, }; ^ gio/tests/socket.c:632:36: warning: missing field 'size' initializer GOutputVector v[7] = { { NULL, }, }; ^ gio/tests/socket.c:633:36: warning: missing field 'size' initializer GInputVector iv[7] = { { NULL, }, }; ^ gio/tests/socket.c:871:32: warning: missing field 'vectors' initializer GInputMessage im = { NULL, }; ^ gio/tests/socket.c:872:31: warning: missing field 'size' initializer GInputVector iv = { NULL, }; ^
* Merge branch 'th/gdbus-doc-unsubscribe-idle' into 'master'Philip Withnall2021-05-171-0/+3
|\ | | | | | | | | gdbus: document completion after idle action for g_dbus_connection_signal_unsubscribe() See merge request GNOME/glib!2050
| * gdbus: document completion after idle action for ↵Thomas Haller2021-05-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | g_dbus_connection_signal_unsubscribe() Since commit ab285899a6fb ('gdbusconnection: Document main context iteration for unsubscript'), we document when the user is guaranteed that all resources are gone after g_dbus_connection_signal_unsubscribe(). This is not merely an implementation detail, it's something that the user needs to be able to rely on. It is good that this is documented. However, libnm does something different ([1]). It registers to several D-Bus signals without providing a GDestroyNotify. After unsubscription, it schedules another idle action with lower priority and uses that to know when cleanup is complete. I think this is a useful alternative and should also be guaranteed and documented to work. Also note that this isn't just some implementation detail that currently happens to work. GDBusConnection tightly integrates with GMainContext and it works by scheduling idle sources with G_PRIORITY_DEFAULT priority. It needs to schedule all events with this same priority, otherwise the ordering is not preserved. At this point, with GDBusConnection working this way, this is no longer something that can reasonably be any different. It's how GDBusConnection fundamentally works, and a user must be able to rely on that. As such, this new promise isn't something that we would want to break in the future. Thus document it. [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/a55c10c6cb0cd047ff2aa835535d2abe09507ad6/src/libnm-client-impl/nm-client.c#L7918
* | Merge branch 'Docs' into 'master'Philip Withnall2021-05-171-0/+23
|\ \ | | | | | | | | | | | | | | | | | | docs: Improved documentation of GNotification Closes #2405 See merge request GNOME/glib!2102
| * | docs: Improved documentation of GNotificationNitin Wartkar2021-05-171-0/+23
| | |
* | | docs: Improved the docs of helper getters optimization in g_file_info.cnitinosiris2021-05-171-0/+5
|/ / | | | | | | | | | | g_file_info_get_name() gives result faster than g_file_info_get_attribute_byte_string() Closes #310
* | Merge branch '1036-dbus-proxy-docs' into 'master'Philip Withnall2021-05-131-0/+7
|\ \ | | | | | | | | | | | | | | | | | | gdbusproxy: Recommend it is not used for stateless services Closes #1036 See merge request GNOME/glib!386
| * | gdbusproxy: Recommend it is not used for stateless servicesPhilip Withnall2021-05-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the reasons given in the new bit of documentation, GDBusProxy should not be used for connecting to stateless D-Bus services which may be restarted at any point. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/1036
* | | tests: Drop use of g_test_bug_base()Philip Withnall2021-05-1319-53/+27
|/ / | | | | | | | | | | | | | | | | | | | | | | Include the base URI in the `g_test_bug()` calls instead. This resolves inconsistencies between the old bug base (bugzilla.gnome.org) and the new bug base (gitlab.gnome.org). It also has the advantage that the URI passed to `g_test_bug()` is now clickable in the code editor, rather than being split across two locations. See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/275#note_303175 Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | Use G_OPTION_ENTRY_NULL to avoid missing initializer warningsEmmanuel Fleury2021-05-1331-40/+44
| |
* | Merge branch 'fix_more_warnings' into 'master'Philip Withnall2021-05-136-6/+6
|\ \ | | | | | | | | | | | | Fix more warnings (clang) See merge request GNOME/glib!2091
| * | Fix missing initializer warning in gio/gio-tool-info.cEmmanuel Fleury2021-05-131-1/+1
| | | | | | | | | | | | | | | | | | gio/gio-tool-info.c:41:10: warning: missing field 'short_name' initializer { NULL } ^
| * | Fix missing initializer warning in gio/gio-tool-copy.cEmmanuel Fleury2021-05-131-1/+1
| | | | | | | | | | | | | | | | | | gio/gio-tool-copy.c:50:10: warning: missing field 'short_name' initializer { NULL } ^
| * | Fix missing initializer warning in gio/gio-tool-cat.cEmmanuel Fleury2021-05-131-1/+1
| | | | | | | | | | | | | | | | | | gio/gio-tool-cat.c:42:10: warning: missing field 'short_name' initializer { NULL } ^
| * | Fix missing initializer warning in gio/glib-compile-schemas.cEmmanuel Fleury2021-05-131-1/+1
| | | | | | | | | | | | | | | | | | gio/glib-compile-schemas.c:2181:12: warning: missing field 'short_name' initializer { NULL } ^
| * | Fix missing initializer warning in gio/tests/socket-client.cEmmanuel Fleury2021-05-131-1/+1
| | | | | | | | | | | | | | | | | | gio/tests/socket-client.c:37:8: warning: missing field 'short_name' initializer {NULL} ^
| * | Fix missing initializer warning in gio/tests/socket-server.cEmmanuel Fleury2021-05-131-1/+1
| |/ | | | | | | | | | | gio/tests/socket-server.c:43:8: warning: missing field 'short_name' initializer {NULL} ^
* | Merge branch 'serializ' into 'master'Philip Withnall2021-05-131-1/+1
|\ \ | |/ |/| | | | | | | | | docs: Standardize spelling of serializ* Closes #2399 See merge request GNOME/glib!2096
| * docs: Standardize spelling of serializ*Geyslan G. Bem2021-05-101-1/+1
| | | | | | | | | | | | | | | | Changes serialis* to serializ*. Fixes: #2399 Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
* | Fix missing initializer in gio/tests/fake-service-name.cEmmanuel Fleury2021-05-061-1/+2
|/ | | | | | gio/tests/fake-service-name.c:55:1: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’} 55 | }; | ^