├── .gitignore ├── deps ├── glib │ ├── info.zon │ ├── upstream │ │ ├── include │ │ │ ├── gio │ │ │ │ ├── gwin32api-misc.h │ │ │ │ ├── giounix-private.h │ │ │ │ ├── gtrashportal.h │ │ │ │ ├── gportalsupport.h │ │ │ │ ├── inotify │ │ │ │ │ ├── inotify-helper.h │ │ │ │ │ ├── inotify-path.h │ │ │ │ │ ├── inotify-missing.h │ │ │ │ │ └── inotify-sub.h │ │ │ │ ├── gdocumentportal.h │ │ │ │ ├── gmountprivate.h │ │ │ │ ├── gregistrysettingsbackend.h │ │ │ │ ├── gmemorymonitordbus.h │ │ │ │ ├── gmemorymonitorportal.h │ │ │ │ ├── gdbusactiongroup-private.h │ │ │ │ ├── thumbnail-verify.h │ │ │ │ ├── xdgmime │ │ │ │ │ ├── xdgmimeicon.h │ │ │ │ │ ├── xdgmimealias.h │ │ │ │ │ ├── xdgmimeparent.h │ │ │ │ │ ├── xdgmimemagic.h │ │ │ │ │ └── xdgmimeglob.h │ │ │ │ ├── gpowerprofilemonitorportal.h │ │ │ │ ├── gpowerprofilemonitordbus.h │ │ │ │ ├── gosxnetworkmonitor.h │ │ │ │ ├── giowin32-afunix.h │ │ │ │ ├── gnetworkingprivate.h │ │ │ │ ├── giowin32-priv.h │ │ │ │ ├── gasynchelper.h │ │ │ │ ├── gsandbox.h │ │ │ │ ├── gthreadedresolver.h │ │ │ │ ├── gwin32sid.h │ │ │ │ ├── gio_trace.h │ │ │ │ ├── gwin32file-sync-stream.h │ │ │ │ ├── gbytesicon.h │ │ │ │ ├── gthreadedresolver-private.h │ │ │ │ ├── giomodule-priv.h │ │ │ │ ├── gdbusdaemon.h │ │ │ │ ├── gsettings-mapping.h │ │ │ │ ├── gsocks4proxy.h │ │ │ │ ├── gsimplepermission.h │ │ │ │ ├── glocalvfs.h │ │ │ │ ├── gioerror.h │ │ │ │ ├── gsimpleiostream.h │ │ │ │ ├── gdbusmenumodel.h │ │ │ │ ├── gopenuriportal.h │ │ │ │ ├── gsubprocesslauncher-private.h │ │ │ │ ├── gactiongroupexporter.h │ │ │ │ ├── gdummyfile.h │ │ │ │ ├── gdummytlsbackend.h │ │ │ │ ├── gcontextspecificgroup.h │ │ │ │ ├── gpollfilemonitor.h │ │ │ │ ├── gappinfoprivate.h │ │ │ │ ├── gsocks5proxy.h │ │ │ │ ├── gresourcefile.h │ │ │ │ ├── gunionvolumemonitor.h │ │ │ │ ├── gsocks4aproxy.h │ │ │ │ ├── gfileicon.h │ │ │ │ ├── gproxyresolverportal.h │ │ │ │ ├── gosxappinfo.h │ │ │ │ ├── gmenuexporter.h │ │ │ │ ├── gtlsfiledatabase.h │ │ │ │ ├── gwin32appinfo.h │ │ │ │ ├── gsrvtarget.h │ │ │ │ └── gpropertyaction.h │ │ │ ├── glib │ │ │ │ ├── gjournal-private.h │ │ │ │ ├── gvalgrind.h │ │ │ │ ├── gnulib │ │ │ │ │ ├── printf-frexp.h │ │ │ │ │ ├── printf-frexpl.h │ │ │ │ │ ├── isnand-nolibm.h │ │ │ │ │ ├── arg-nonnull.h │ │ │ │ │ ├── isnanl-nolibm.h │ │ │ │ │ ├── g-gnulib.h │ │ │ │ │ ├── isnanf-nolibm.h │ │ │ │ │ └── printf.h │ │ │ │ ├── gasyncqueueprivate.h │ │ │ │ ├── gunicodeprivate.h │ │ │ │ ├── gmain-internal.h │ │ │ │ ├── gcharsetprivate.h │ │ │ │ ├── guriprivate.h │ │ │ │ ├── gi18n.h │ │ │ │ ├── gwakeup.h │ │ │ │ ├── glib-mirroring-tab │ │ │ │ │ └── packtab.h │ │ │ │ ├── guuid.h │ │ │ │ ├── gi18n-lib.h │ │ │ │ ├── glibintl.h │ │ │ │ ├── glib_trace.h │ │ │ │ ├── gconvertprivate.h │ │ │ │ ├── ghostutils.h │ │ │ │ ├── libcharset │ │ │ │ │ ├── localcharset.h │ │ │ │ │ └── libcharset.h │ │ │ │ ├── glib-object.h │ │ │ │ ├── gcharset.h │ │ │ │ ├── glib-init.h │ │ │ │ ├── glib-typeof.h │ │ │ │ ├── gprimes.h │ │ │ │ ├── gshell.h │ │ │ │ ├── gprintfint.h │ │ │ │ ├── gqsort.h │ │ │ │ ├── gdir.h │ │ │ │ └── gtrashstack.h │ │ │ └── gobject │ │ │ │ ├── gsourceclosure.h │ │ │ │ ├── gobject-autocleanups.h │ │ │ │ └── gobject_trace.h │ │ └── LICENSES │ │ │ ├── LicenseRef-old-glib-tests.txt │ │ │ ├── LLVM-exception.txt │ │ │ └── MIT.txt │ ├── README.md │ └── cached │ │ └── include │ │ └── gobject │ │ └── glib-enumtypes.h ├── udev │ ├── include │ │ ├── LICENSES │ │ │ ├── lookup3-public-domain.txt │ │ │ ├── murmurhash2-public-domain.txt │ │ │ ├── alg-sha1-public-domain.txt │ │ │ ├── Linux-syscall-note.txt │ │ │ ├── MIT-0.txt │ │ │ ├── MIT.txt │ │ │ ├── BSD-2-Clause.txt │ │ │ └── BSD-3-Clause.txt │ │ ├── libudev-device-internal.h │ │ ├── libudev-util.h │ │ └── libudev-list-internal.h │ └── README.md ├── liburing │ ├── io_uring_version.h.in │ ├── README.md │ ├── include │ │ ├── LICENSE │ │ └── liburing │ │ │ └── sanitize.h │ └── compat.h.in ├── README.md ├── mesa │ ├── README.md │ └── include │ │ ├── licenses │ │ ├── exceptions │ │ │ └── Linux-Syscall-Note │ │ ├── MIT │ │ ├── BSL-1.0 │ │ └── SGI-B-2.0 │ │ └── gbm │ │ ├── backend.h │ │ └── gbmint.h ├── wayland │ └── README.md ├── xcb │ ├── include │ │ └── xcb │ │ │ └── xcb.h │ └── README.md ├── drm │ ├── README.md │ └── include │ │ ├── xf86drmRandom.h │ │ ├── util_math.h │ │ └── xf86drmHash.h └── alsa │ ├── README.md │ └── include │ └── alsa │ └── asoundlib.h ├── LICENSE ├── .github └── workflows │ └── ci.yaml └── src └── example.zig /.gitignore: -------------------------------------------------------------------------------- 1 | zig-out/ 2 | .zig-cache/ 3 | -------------------------------------------------------------------------------- /deps/glib/info.zon: -------------------------------------------------------------------------------- 1 | .{ 2 | .version = "2.85.0", 3 | } 4 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/lookup3-public-domain.txt: -------------------------------------------------------------------------------- 1 | lookup3.c, by Bob Jenkins, May 2006, Public Domain. 2 | -------------------------------------------------------------------------------- /deps/liburing/io_uring_version.h.in: -------------------------------------------------------------------------------- 1 | #ifndef LIBURING_VERSION_H 2 | #define LIBURING_VERSION_H 3 | 4 | #undef IO_URING_VERSION_MAJOR 5 | #undef IO_URING_VERSION_MINOR 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/murmurhash2-public-domain.txt: -------------------------------------------------------------------------------- 1 | MurmurHash2 was written by Austin Appleby, and is placed in the public 2 | domain. The author hereby disclaims copyright to this source code. 3 | -------------------------------------------------------------------------------- /deps/README.md: -------------------------------------------------------------------------------- 1 | This directoy contains depenencies, or parts of depenencies, that we couldn't pull in via the build system for one reason or another. See the README in each directory for an explanation. 2 | -------------------------------------------------------------------------------- /deps/mesa/README.md: -------------------------------------------------------------------------------- 1 | # mesa 25.0.7 2 | 3 | Headers vendored from [https://gitlab.freedesktop.org/mesa/mesa/](here). We can't pull them in via the build system because the original package contains symlinks, which breaks cross compiling from Windows. 4 | -------------------------------------------------------------------------------- /deps/wayland/README.md: -------------------------------------------------------------------------------- 1 | # Wayland 2 | 3 | ## Protocols 4 | 5 | These are generated from the protocols provided by SDL. You can regenerate them with `zig build wayland-scanner`, however `wayland-scanner` needs to be on your path for this to work hence caching the results here. 6 | -------------------------------------------------------------------------------- /deps/udev/README.md: -------------------------------------------------------------------------------- 1 | # udev 2 | 3 | The contents of `include` come from [here](https://github.com/systemd/systemd/releases/tag/v257.6). 4 | 5 | The required headers had to be vendored, as the parent repo contains paths that aren't supported on Windows, which breaks cross compilation. 6 | -------------------------------------------------------------------------------- /deps/udev/include/libudev-device-internal.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | #pragma once 3 | 4 | #include "libudev.h" 5 | #include "sd-device.h" 6 | 7 | struct udev_device; 8 | 9 | struct udev_device *udev_device_new(struct udev *udev, sd_device *device); 10 | sd_device *udev_device_get_sd_device(struct udev_device *udev_device); 11 | -------------------------------------------------------------------------------- /deps/xcb/include/xcb/xcb.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // These resource ID types are normally generated by xcbproto into `xproto.h`. They're always 32 4 | // bits. 5 | typedef uint32_t xcb_window_t; 6 | typedef uint32_t xcb_visualid_t; 7 | 8 | // This is defined as an opaque type in the real `xcb.h`. 9 | typedef struct xcb_connection_t xcb_connection_t; 10 | -------------------------------------------------------------------------------- /deps/drm/README.md: -------------------------------------------------------------------------------- 1 | # DRM 2.4.124 2 | 3 | No, not that kind of DRM. 4 | 5 | Headers vendored from [here](https://gitlab.freedesktop.org/mesa/libdrm/). This repo does not provide a single top level license, but each file has a brief description of allowed usage at the top. 6 | 7 | We couldn't include this package via the build system, as it contains symlinks which breaks cross compilation from Windows. 8 | -------------------------------------------------------------------------------- /deps/alsa/README.md: -------------------------------------------------------------------------------- 1 | # alsa 2 | 3 | Alsa normally generates `asoundlib.h` as part of its build process. Since the results are fairly straightforward, we've replicated them here rather than try to integrate directly with alsa's build system. An explanation of the choices made given in the header itself. It may need to be updated if alsa is updated, or if the surface area of the integration between SDL and alsa is increased. 4 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gwin32api-misc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-FileCopyrightText: This file has no copyright assigned and is placed in the Public Domain. 3 | * SPDX-License-Identifier: CC0-1.0 4 | * 5 | * This file is part of the w64 mingw-runtime package. 6 | * No warranty is given; refer to https://github.com/kinke/mingw-w64-crt/blob/master/DISCLAIMER.PD. 7 | */ 8 | 9 | typedef interface IProcessorArchitecture IProcessorArchitecture; 10 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/alg-sha1-public-domain.txt: -------------------------------------------------------------------------------- 1 | SHA-1 in C, by Steve Reid , Public Domain 2 | Modified by James H. Brown , 7/98, Public Domain 3 | Modified by Steve Reid , 8/98, Public Domain 4 | Modified by Saul Kravitz , 4/01, Public Domain 5 | Modified by Ralph Giles , 07/2002, Public Domain 6 | Modified by Björn Esser , 10/2017, Public Domain 7 | -------------------------------------------------------------------------------- /deps/xcb/README.md: -------------------------------------------------------------------------------- 1 | # xcb 2 | 3 | There are two main ways to talk to X11: Xlib, and xcb. 4 | 5 | SDL uses Xlib. However, when creating a Vulkan window with X11, one of the two following extensions must be used: 6 | 7 | 1. VK_KHR_xlib_surface 8 | 2. VK_KHR_xcb_surface 9 | 10 | If only the second is present, then SDL needs access to a small number of xcb definitions. Actually building xcb from source is fairly involved, and the integration is so minimal that we're opting to just provide the relevant types here. 11 | -------------------------------------------------------------------------------- /deps/udev/include/libudev-util.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | #pragma once 3 | 4 | #include "libudev.h" 5 | 6 | #include "macro.h" 7 | 8 | /* Cleanup functions */ 9 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref); 10 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref); 11 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref); 12 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref); 13 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_hwdb*, udev_hwdb_unref); 14 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_queue*, udev_queue_unref); 15 | -------------------------------------------------------------------------------- /deps/udev/include/libudev-list-internal.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | #pragma once 3 | 4 | #include "libudev.h" 5 | 6 | #include "macro.h" 7 | 8 | struct udev_list; 9 | 10 | struct udev_list *udev_list_new(bool unique); 11 | void udev_list_cleanup(struct udev_list *list); 12 | struct udev_list *udev_list_free(struct udev_list *list); 13 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_list *, udev_list_free); 14 | 15 | struct udev_list_entry *udev_list_get_entry(struct udev_list *list); 16 | struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *name, const char *value); 17 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/Linux-syscall-note.txt: -------------------------------------------------------------------------------- 1 | NOTE! This copyright does *not* cover user programs that use kernel 2 | services by normal system calls - this is merely considered normal use 3 | of the kernel, and does *not* fall under the heading of "derived work". 4 | Also note that the GPL below is copyrighted by the Free Software 5 | Foundation, but the instance of code that it refers to (the Linux 6 | kernel) is copyrighted by me and others who actually wrote it. 7 | 8 | Also note that the only valid version of the GPL as far as the kernel 9 | is concerned is _this_ particular version of the license (ie v2, not 10 | v2.2 or v3.x or whatever), unless explicitly otherwise stated. 11 | 12 | Linus Torvalds 13 | -------------------------------------------------------------------------------- /deps/glib/upstream/LICENSES/LicenseRef-old-glib-tests.txt: -------------------------------------------------------------------------------- 1 | This work is provided "as is"; redistribution and modification 2 | in whole or in part, in any medium, physical or electronic is 3 | permitted without restriction. 4 | 5 | This work is distributed in the hope that it will be useful, 6 | but WITHOUT ANY WARRANTY; without even the implied warranty of 7 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 8 | 9 | In no event shall the authors or contributors be liable for any 10 | direct, indirect, incidental, special, exemplary, or consequential 11 | damages (including, but not limited to, procurement of substitute 12 | goods or services; loss of use, data, or profits; or business 13 | interruption) however caused and on any theory of liability, whether 14 | in contract, strict liability, or tort (including negligence or 15 | otherwise) arising in any way out of the use of this software, even 16 | if advised of the possibility of such damage. 17 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/MIT-0.txt: -------------------------------------------------------------------------------- 1 | MIT No Attribution 2 | 3 | Copyright 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /deps/liburing/README.md: -------------------------------------------------------------------------------- 1 | # liburing 2.10 2 | 3 | Vendored from [here](https://github.com/axboe/liburing/releases/tag/liburing-2.10). We only need the headers, but we can't get them through the build system, as the upstream repo contains files with an extenion of `.3` which isn't allowed on Windows, breaking cross compilation. 4 | 5 | As such, we've copied the required files into `include`. 6 | 7 | A few hand created files are also provided, details follow. 8 | 9 | ## io_uring_version.h.in 10 | 11 | This is a straightforward transformation of the version header generated by liburing at build time. 12 | 13 | ## compat.h 14 | 15 | This file's generation is slightly more involved. The original shell script detects whether or not various features are available by attempting to compile programs that use them, and then checking whether the compilation failed or not. 16 | 17 | To avoid a dependency on the shell, we've hand translated them to autopconf undef style config headers. 18 | -------------------------------------------------------------------------------- /deps/glib/upstream/LICENSES/LLVM-exception.txt: -------------------------------------------------------------------------------- 1 | ---- LLVM Exceptions to the Apache 2.0 License ---- 2 | 3 | As an exception, if, as a result of your compiling your source code, portions 4 | of this Software are embedded into an Object form of such source code, you 5 | may redistribute such embedded portions in such Object form without complying 6 | with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 7 | 8 | In addition, if you combine or link compiled forms of this Software with 9 | software that is licensed under the GPLv2 ("Combined Software") and if a 10 | court of competent jurisdiction determines that the patent provision (Section 11 | 3), the indemnity provision (Section 9) or other Section of the License 12 | conflicts with the conditions of the GPLv2, you may retroactively and 13 | prospectively choose to deem waived or otherwise exclude such Section(s) of 14 | the License, but only in their entirety and only with respect to the Combined 15 | Software. 16 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/giounix-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2021 Ole André Vadla Ravnås 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | #pragma once 21 | 22 | #include "gio.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | gboolean _g_fd_is_pollable (int fd); 27 | 28 | G_END_DECLS 29 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gjournal-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2022 Collabora Ltd. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __GLIB_JOURNAL_PRIVATE_H__ 21 | #define __GLIB_JOURNAL_PRIVATE_H__ 22 | 23 | int _g_fd_is_journal (int output_fd); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/MIT.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /deps/glib/upstream/LICENSES/MIT.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /deps/glib/README.md: -------------------------------------------------------------------------------- 1 | # glib 2.85.0 2 | 3 | The required headers are vendored into `upstream` from [here](https://gitlab.gnome.org/GNOME/glib/-/tags/2.85.0). We can't pull them in via the build system because the original package contains symlinks, which breaks cross compiling from Windows. 4 | 5 | If updating, keep `info.zon` in sync. See also the rest of this file for an explanation of hte files in `cached`. 6 | 7 | ## Generated glib headers 8 | 9 | `glib` generates some headers in a way that's annoying to fully replicate automatically, so some manual is done here. These header may need to be updated if glib is updated. 10 | 11 | ### glibconfig.h.in 12 | 13 | This was copied verbatim from glib, but each `#mesondefine` was renamed to `#cmakedefine` to make it easier to use with Zig's build system. 14 | 15 | ### glib_versions.h 16 | 17 | This file is generated in a fairly straightforward way that we could automate, but haven't yet. It's just a list of macros for a list of glib version names. For now we just have the hard coded result for the current version. It's not inside of `include` as it's not actually exported as a public header. 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /deps/liburing/include/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2020 Jens Axboe 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a 4 | copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /deps/glib/cached/include/gobject/glib-enumtypes.h: -------------------------------------------------------------------------------- 1 | 2 | /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 3 | 4 | #ifndef __GOBJECT_ENUM_TYPES_H__ 5 | #define __GOBJECT_ENUM_TYPES_H__ 6 | 7 | #include 8 | 9 | G_BEGIN_DECLS 10 | 11 | /* enumerations from "gunicode.h" */ 12 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_type_get_type (void) G_GNUC_CONST; 13 | #define G_TYPE_UNICODE_TYPE (g_unicode_type_get_type ()) 14 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_break_type_get_type (void) G_GNUC_CONST; 15 | #define G_TYPE_UNICODE_BREAK_TYPE (g_unicode_break_type_get_type ()) 16 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_script_get_type (void) G_GNUC_CONST; 17 | #define G_TYPE_UNICODE_SCRIPT (g_unicode_script_get_type ()) 18 | GOBJECT_AVAILABLE_IN_2_60 GType g_normalize_mode_get_type (void) G_GNUC_CONST; 19 | #define G_TYPE_NORMALIZE_MODE (g_normalize_mode_get_type ()) 20 | G_END_DECLS 21 | 22 | #endif /* __GOBJECT_ENUM_TYPES_H__ */ 23 | 24 | /* Generated data ends here */ 25 | 26 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gtrashportal.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2018 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_TRASH_PORTAL_H__ 22 | 23 | #include 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | gboolean g_trash_portal_trash_file (GFile *file, 29 | GError **error); 30 | 31 | G_END_DECLS 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/liburing/include/liburing/sanitize.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: MIT */ 2 | #ifndef LIBURING_SANITIZE_H 3 | #define LIBURING_SANITIZE_H 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | struct io_uring; 10 | struct iovec; 11 | 12 | #if defined(CONFIG_USE_SANITIZER) 13 | void liburing_sanitize_ring(struct io_uring *ring); 14 | void liburing_sanitize_address(const void *addr); 15 | void liburing_sanitize_region(const void *addr, unsigned int len); 16 | void liburing_sanitize_iovecs(const struct iovec *iovecs, unsigned nr); 17 | #else 18 | #define __maybe_unused __attribute__((__unused__)) 19 | static inline void liburing_sanitize_ring(struct io_uring __maybe_unused *ring) 20 | { 21 | } 22 | static inline void liburing_sanitize_address(const void __maybe_unused *addr) 23 | { 24 | } 25 | static inline void liburing_sanitize_region(const void __maybe_unused *addr, 26 | unsigned int __maybe_unused len) 27 | { 28 | } 29 | static inline void liburing_sanitize_iovecs(const struct iovec __maybe_unused *iovecs, 30 | unsigned __maybe_unused nr) 31 | { 32 | } 33 | #endif 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | pull_request: 8 | branches: 9 | - master 10 | workflow_dispatch: 11 | 12 | jobs: 13 | build: 14 | strategy: 15 | fail-fast: false 16 | matrix: 17 | zig-version: [master] 18 | os: [ubuntu-latest, windows-latest] 19 | runs-on: ${{ matrix.os }} 20 | steps: 21 | - name: Checkout 22 | uses: actions/checkout@v4 23 | 24 | - name: Setup Zig 25 | uses: mlugg/setup-zig@v2 26 | with: 27 | version: ${{ matrix.zig-version }} 28 | 29 | - name: Check Formatting 30 | if: runner.os != 'Windows' # zig fmt failing on Windows CI, unclear why 31 | run: zig fmt --ast-check --check . 32 | 33 | - name: Build for Windows 34 | run: zig build example -Dtarget=x86_64-windows-gnu --summary all 35 | 36 | - name: Build for Linux 37 | run: zig build example -Dtarget=x86_64-linux-gnu --summary all 38 | 39 | - name: Build for macOS 40 | if: runner.os == 'macOS' 41 | run: zig build example -Dtarget=x86_64-macos-gnu --summary all 42 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gvalgrind.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018 Collabora ltd. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Xavier Claessens 20 | */ 21 | 22 | #ifndef __G_VALGRIND_H__ 23 | #define __G_VALGRIND_H__ 24 | 25 | #if HAVE_STDINT_H 26 | #include 27 | #endif 28 | 29 | #ifndef _MSC_VER 30 | #include "valgrind.h" 31 | #define ENABLE_VALGRIND 1 32 | #endif 33 | 34 | #endif /* __G_VALGRIND_H__ */ 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/printf-frexp.h: -------------------------------------------------------------------------------- 1 | /* Split a double into fraction and mantissa, for hexadecimal printf. 2 | Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU Lesser General Public License as published by 6 | the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Write a finite, positive number x as 18 | x = mantissa * 2^exp 19 | where exp >= DBL_MIN_EXP - 1, 20 | mantissa < 2.0, 21 | if x is not a denormalized number then mantissa >= 1.0. 22 | Store exp in *EXPPTR and return mantissa. */ 23 | extern double printf_frexp (double x, int *expptr); 24 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gasyncqueueprivate.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __G_ASYNCQUEUEPRIVATE_H__ 21 | #define __G_ASYNCQUEUEPRIVATE_H__ 22 | 23 | #include "gasyncqueue.h" 24 | 25 | G_BEGIN_DECLS 26 | 27 | GMutex *_g_async_queue_get_mutex (GAsyncQueue *queue); 28 | 29 | G_END_DECLS 30 | 31 | #endif /* __G_ASYNCQUEUEPRIVATE_H__ */ 32 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gportalsupport.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2016 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_PORTAL_SUPPORT_H__ 22 | #define __G_PORTAL_SUPPORT_H__ 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | gboolean glib_should_use_portal (void); 29 | gboolean glib_network_available_in_sandbox (void); 30 | gboolean glib_has_dconf_access_in_sandbox (void); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/printf-frexpl.h: -------------------------------------------------------------------------------- 1 | /* Split a 'long double' into fraction and mantissa, for hexadecimal printf. 2 | Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU Lesser General Public License as published by 6 | the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Write a finite, positive number x as 18 | x = mantissa * 2^exp 19 | where exp >= LDBL_MIN_EXP - 1, 20 | mantissa < 2.0, 21 | if x is not a denormalized number then mantissa >= 1.0. 22 | Store exp in *EXPPTR and return mantissa. */ 23 | extern long double printf_frexpl (long double x, int *expptr); 24 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gunicodeprivate.h: -------------------------------------------------------------------------------- 1 | /* gunicodeprivate.h 2 | * 3 | * Copyright (C) 2003 Noah Levitt 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_UNICODE_PRIVATE_H__ 22 | #define __G_UNICODE_PRIVATE_H__ 23 | 24 | #include "gtypes.h" 25 | 26 | G_BEGIN_DECLS 27 | 28 | gunichar *_g_utf8_normalize_wc (const gchar *str, 29 | gssize max_len, 30 | GNormalizeMode mode); 31 | 32 | G_END_DECLS 33 | 34 | #endif /* __G_UNICODE_PRIVATE_H__ */ 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gmain-internal.h: -------------------------------------------------------------------------------- 1 | /* gmain-internal.h - GLib-internal mainloop API 2 | * Copyright (C) 2011 Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __G_MAIN_INTERNAL_H__ 21 | #define __G_MAIN_INTERNAL_H__ 22 | 23 | #if !defined (GLIB_COMPILATION) 24 | #error "This is a private header" 25 | #endif 26 | 27 | #include "gmain.h" 28 | 29 | G_BEGIN_DECLS 30 | 31 | GSource *_g_main_create_unix_signal_watch (int signum); 32 | 33 | G_END_DECLS 34 | 35 | #endif /* __G_MAIN_H__ */ 36 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/inotify/inotify-helper.h: -------------------------------------------------------------------------------- 1 | /* inotify-helper.h - GVFS Directory Monitor using inotify 2 | 3 | Copyright (C) 2007 John McCutchan 4 | 5 | SPDX-License-Identifier: LGPL-2.1-or-later 6 | 7 | This library is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU Lesser General Public 9 | License as published by the Free Software Foundation; either 10 | version 2.1 of the License, or (at your option) any later version. 11 | 12 | This library is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with this library; if not, see . 19 | 20 | Author: John McCutchan 21 | */ 22 | 23 | 24 | #ifndef __INOTIFY_HELPER_H 25 | #define __INOTIFY_HELPER_H 26 | 27 | #include "inotify-sub.h" 28 | 29 | gboolean _ih_startup (void); 30 | gboolean _ih_sub_add (inotify_sub *sub); 31 | gboolean _ih_sub_cancel (inotify_sub *sub); 32 | 33 | #endif /* __INOTIFY_HELPER_H */ 34 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gdocumentportal.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2016 Endless Mobile, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_DOCUMENT_PORTAL_H__ 22 | 23 | #include 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | GList * g_document_portal_add_documents (GList *uris, 29 | const char *app_id, 30 | GError **error); 31 | 32 | G_END_DECLS 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gmountprivate.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_VOLUMEPRIV_H__ 24 | #define __G_VOLUMEPRIV_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | GMount *_g_mount_get_for_mount_path (const char *mount_path, 31 | GCancellable *cancellable); 32 | 33 | G_END_DECLS 34 | 35 | #endif /* __G_VOLUMEPRIV_H__ */ 36 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gcharsetprivate.h: -------------------------------------------------------------------------------- 1 | /* gunicodeprivate.h 2 | * 3 | * Copyright (C) 2012 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_CHARSET_PRIVATE_H__ 22 | #define __G_CHARSET_PRIVATE_H__ 23 | 24 | #include "gcharset.h" 25 | 26 | G_BEGIN_DECLS 27 | 28 | const char ** _g_charset_get_aliases (const char *canonical_name); 29 | 30 | gboolean _g_get_time_charset (const char **charset); 31 | 32 | gboolean _g_get_ctype_charset (const char **charset); 33 | 34 | G_END_DECLS 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gregistrysettingsbackend.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2009-10 Sam Thursfield 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Sam Thursfield 20 | */ 21 | 22 | #ifndef __G_REGISTRY_SETTINGS_BACKEND_H__ 23 | #define __G_REGISTRY_SETTINGS_BACKEND_H__ 24 | 25 | #include 26 | 27 | #include 28 | 29 | GIO_AVAILABLE_IN_2_78 30 | GSettingsBackend * g_registry_settings_backend_new (const gchar *registry_key); 31 | 32 | #endif /* __G_REGISTRY_SETTINGS_BACKEND_H__ */ 33 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gmemorymonitordbus.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2019 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_MEMORY_MONITOR_DBUS_H__ 22 | #define __G_MEMORY_MONITOR_DBUS_H__ 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define G_TYPE_MEMORY_MONITOR_DBUS (g_memory_monitor_dbus_get_type ()) 29 | G_DECLARE_FINAL_TYPE (GMemoryMonitorDBus, g_memory_monitor_dbus, G, MEMORY_MONITOR_DBUS, GObject) 30 | 31 | G_END_DECLS 32 | 33 | #endif /* __G_MEMORY_MONITOR_DBUS_H__ */ 34 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/BSD-2-Clause.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 4 | 5 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 6 | 7 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 8 | 9 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 10 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gmemorymonitorportal.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2019 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_MEMORY_MONITOR_PORTAL_H__ 22 | #define __G_MEMORY_MONITOR_PORTAL_H__ 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define G_TYPE_MEMORY_MONITOR_PORTAL (g_memory_monitor_portal_get_type ()) 29 | G_DECLARE_FINAL_TYPE (GMemoryMonitorPortal, g_memory_monitor_portal, G, MEMORY_MONITOR_PORTAL, GObject) 30 | 31 | G_END_DECLS 32 | 33 | #endif /* __G_MEMORY_MONITOR_PORTAL_H__ */ 34 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/inotify/inotify-path.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2005 John McCutchan 3 | 4 | SPDX-License-Identifier: LGPL-2.1-or-later 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public License 17 | along with this library; if not, see . 18 | 19 | Authors:. 20 | John McCutchan 21 | */ 22 | 23 | #ifndef __INOTIFY_PATH_H 24 | #define __INOTIFY_PATH_H 25 | 26 | #include "inotify-kernel.h" 27 | #include "inotify-sub.h" 28 | 29 | gboolean _ip_startup (gboolean (*event_cb)(ik_event_t *event, inotify_sub *sub, gboolean file_event)); 30 | gboolean _ip_start_watching (inotify_sub *sub); 31 | gboolean _ip_stop_watching (inotify_sub *sub); 32 | const char * _ip_get_path_for_wd (gint32 wd); 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/guriprivate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2020 Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Marc-André Lureau 20 | */ 21 | 22 | #ifndef __G_URI_PRIVATE_H__ 23 | #define __G_URI_PRIVATE_H__ 24 | 25 | #include "gtypes.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | void 30 | _uri_encoder (GString *out, 31 | const guchar *start, 32 | gsize length, 33 | const gchar *reserved_chars_allowed, 34 | gboolean allow_utf8); 35 | 36 | G_END_DECLS 37 | 38 | #endif /* __G_URI_PRIVATE_H__ */ 39 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/inotify/inotify-missing.h: -------------------------------------------------------------------------------- 1 | /* inotify-helper.h - GNOME VFS Monitor using inotify 2 | 3 | Copyright (C) 2006 John McCutchan 4 | 5 | SPDX-License-Identifier: LGPL-2.1-or-later 6 | 7 | This library is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU Lesser General Public 9 | License as published by the Free Software Foundation; either 10 | version 2.1 of the License, or (at your option) any later version. 11 | 12 | This library is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with this library; if not, see . 19 | 20 | Author: John McCutchan 21 | */ 22 | 23 | 24 | #ifndef __INOTIFY_MISSING_H 25 | #define __INOTIFY_MISSING_H 26 | 27 | #include "inotify-sub.h" 28 | 29 | void _im_startup (void (*missing_cb)(inotify_sub *sub)); 30 | void _im_add (inotify_sub *sub); 31 | void _im_rm (inotify_sub *sub); 32 | void _im_diag_dump (GIOChannel *ioc); 33 | 34 | 35 | #endif /* __INOTIFY_MISSING_H */ 36 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gdbusactiongroup-private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 Codethink Limited 3 | * Copyright © 2011 Canonical Limited 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Authors: Ryan Lortie 21 | */ 22 | 23 | #ifndef __G_DBUS_ACTION_GROUP_PRIVATE_H__ 24 | #define __G_DBUS_ACTION_GROUP_PRIVATE_H__ 25 | 26 | #include "gdbusactiongroup.h" 27 | 28 | G_BEGIN_DECLS 29 | 30 | gboolean 31 | g_dbus_action_group_sync (GDBusActionGroup *group, 32 | GCancellable *cancellable, 33 | GError **error); 34 | 35 | G_END_DECLS 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/isnand-nolibm.h: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU Lesser General Public License as published by 6 | the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public License 15 | along with this program. If not, see . */ 16 | 17 | #if HAVE_ISNAND_IN_LIBC 18 | /* Get declaration of isnan macro. */ 19 | # include 20 | # if __GNUC__ >= 4 21 | /* GCC 4.0 and newer provides three built-ins for isnan. */ 22 | # undef isnand 23 | # define isnand(x) __builtin_isnan ((double)(x)) 24 | # else 25 | # undef isnand 26 | # define isnand(x) isnan ((double)(x)) 27 | # endif 28 | #else 29 | /* Test whether X is a NaN. */ 30 | # undef isnand 31 | # define isnand rpl_isnand 32 | extern int isnand (double x); 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/arg-nonnull.h: -------------------------------------------------------------------------------- 1 | /* A C macro for declaring that specific arguments must not be NULL. 2 | Copyright (C) 2009-2018 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify it 5 | under the terms of the GNU Lesser General Public License as published 6 | by the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools 18 | that the values passed as arguments n, ..., m must be non-NULL pointers. 19 | n = 1 stands for the first argument, n = 2 for the second argument etc. */ 20 | #ifndef _GL_ARG_NONNULL 21 | # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 22 | # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) 23 | # else 24 | # define _GL_ARG_NONNULL(params) 25 | # endif 26 | #endif 27 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gi18n.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __G_I18N_H__ 21 | #define __G_I18N_H__ 22 | 23 | #include 24 | 25 | #include 26 | #include 27 | 28 | #define _(String) gettext (String) 29 | #define Q_(String) g_dpgettext (NULL, String, 0) 30 | #define N_(String) (String) 31 | #define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1) 32 | #define NC_(Context, String) (String) 33 | 34 | #endif /* __G_I18N_H__ */ 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/thumbnail-verify.h: -------------------------------------------------------------------------------- 1 | /* Copyright © 2013 Canonical Limited 2 | * 3 | * SPDX-License-Identifier: LGPL-2.1-or-later 4 | * 5 | * This library is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU Lesser General Public 7 | * License as published by the Free Software Foundation; either 8 | * version 2.1 of the License, or (at your option) any later version. 9 | * 10 | * This library is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General 16 | * Public License along with this library; if not, see . 17 | * 18 | * Author: Ryan Lortie 19 | */ 20 | 21 | #ifndef _thumbnail_verify_h_ 22 | #define _thumbnail_verify_h_ 23 | 24 | #include 25 | #include 26 | #include "glocalfileinfo.h" 27 | 28 | gboolean thumbnail_verify (const gchar *thumbnail_path, 29 | const gchar *file_uri, 30 | const GLocalFileStat *file_stat_buf); 31 | 32 | #endif /* _thumbnail_verify_h_ */ 33 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/xdgmime/xdgmimeicon.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C; c-file-style: "gnu" -*- */ 2 | /* xdgmimeicon.h: Private file. Datastructure for storing the aliases. 3 | * 4 | * More info can be found at http://www.freedesktop.org/standards/ 5 | * 6 | * Copyright (C) 2008 Red Hat, Inc. 7 | * 8 | * SPDX-License-Identifier: LGPL-2.1-or-later or AFL-2.0 9 | */ 10 | 11 | #ifndef __XDG_MIME_ICON_H__ 12 | #define __XDG_MIME_ICON_H__ 13 | 14 | #include "xdgmime.h" 15 | 16 | typedef struct XdgIconList XdgIconList; 17 | 18 | #ifdef XDG_PREFIX 19 | #define _xdg_mime_icon_read_from_file XDG_ENTRY(icon_read_from_file) 20 | #define _xdg_mime_icon_list_new XDG_ENTRY(icon_list_new) 21 | #define _xdg_mime_icon_list_free XDG_ENTRY(icon_list_free) 22 | #define _xdg_mime_icon_list_lookup XDG_ENTRY(icon_list_lookup) 23 | #define _xdg_mime_icon_list_dump XDG_ENTRY(icon_list_dump) 24 | #endif 25 | 26 | void _xdg_mime_icon_read_from_file (XdgIconList *list, 27 | const char *file_name); 28 | XdgIconList *_xdg_mime_icon_list_new (void); 29 | void _xdg_mime_icon_list_free (XdgIconList *list); 30 | const char *_xdg_mime_icon_list_lookup (XdgIconList *list, 31 | const char *mime); 32 | void _xdg_mime_icon_list_dump (XdgIconList *list); 33 | 34 | #endif /* __XDG_MIME_ICON_H__ */ 35 | -------------------------------------------------------------------------------- /deps/mesa/include/licenses/exceptions/Linux-Syscall-Note: -------------------------------------------------------------------------------- 1 | SPDX-Exception-Identifier: Linux-syscall-note 2 | SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html 3 | SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+, GPL-2.0-only, GPL-2.0-or-later 4 | Usage-Guide: 5 | This exception is used together with one of the above SPDX-Licenses 6 | to mark user space API (uapi) header files so they can be included 7 | into non GPL compliant user space application code. 8 | To use this exception add it with the keyword WITH to one of the 9 | identifiers in the SPDX-Licenses tag: 10 | SPDX-License-Identifier: WITH Linux-syscall-note 11 | License-Text: 12 | 13 | NOTE! This copyright does *not* cover user programs that use kernel 14 | services by normal system calls - this is merely considered normal use 15 | of the kernel, and does *not* fall under the heading of "derived work". 16 | Also note that the GPL below is copyrighted by the Free Software 17 | Foundation, but the instance of code that it refers to (the Linux 18 | kernel) is copyrighted by me and others who actually wrote it. 19 | 20 | Also note that the only valid version of the GPL as far as the kernel 21 | is concerned is _this_ particular version of the license (ie v2, not 22 | v2.2 or v3.x or whatever), unless explicitly otherwise stated. 23 | 24 | Linus Torvalds 25 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gpowerprofilemonitorportal.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2021 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_POWER_PROFILE_MONITOR_PORTAL_H__ 22 | #define __G_POWER_PROFILE_MONITOR_PORTAL_H__ 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define G_TYPE_POWER_PROFILE_MONITOR_PORTAL (g_power_profile_monitor_portal_get_type ()) 29 | G_DECLARE_FINAL_TYPE (GPowerProfileMonitorPortal, g_power_profile_monitor_portal, G, POWER_PROFILE_MONITOR_PORTAL, GObject) 30 | 31 | G_END_DECLS 32 | 33 | #endif /* __G_POWER_PROFILE_MONITOR_PORTAL_H__ */ 34 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gpowerprofilemonitordbus.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2019 Red Hat, Inc. 4 | * Copyright 2021 Igalia S.L. 5 | * 6 | * SPDX-License-Identifier: LGPL-2.1-or-later 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General 19 | * Public License along with this library; if not, see . 20 | */ 21 | 22 | #ifndef __G_POWER_PROFILE_MONITOR_DBUS_H__ 23 | #define __G_POWER_PROFILE_MONITOR_DBUS_H__ 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define G_TYPE_POWER_PROFILE_MONITOR_DBUS (g_power_profile_monitor_dbus_get_type ()) 30 | G_DECLARE_FINAL_TYPE (GPowerProfileMonitorDBus, g_power_profile_monitor_dbus, G, POWER_PROFILE_MONITOR_DBUS, GObject) 31 | 32 | G_END_DECLS 33 | 34 | #endif /* __G_POWER_PROFILE_MONITOR_DBUS_H__ */ 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/isnanl-nolibm.h: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU Lesser General Public License as published by 6 | the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public License 15 | along with this program. If not, see . */ 16 | 17 | #if HAVE_ISNANL_IN_LIBC 18 | /* Get declaration of isnan macro or (older) isnanl function. */ 19 | # include 20 | # if __GNUC__ >= 4 21 | /* GCC 4.0 and newer provides three built-ins for isnan. */ 22 | # undef isnanl 23 | # define isnanl(x) __builtin_isnanl ((long double)(x)) 24 | # elif defined isnan 25 | # undef isnanl 26 | # define isnanl(x) isnan ((long double)(x)) 27 | # endif 28 | #else 29 | /* Test whether X is a NaN. */ 30 | # undef isnanl 31 | # define isnanl rpl_isnanl 32 | extern int isnanl (long double x); 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gosxnetworkmonitor.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2023 Leo Zi-You Assini 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 20 | * Boston, MA 02111-1307, USA. 21 | */ 22 | 23 | #ifndef __G_OSX_NETWORK_MONITOR_H__ 24 | #define __G_OSX_NETWORK_MONITOR_H__ 25 | 26 | #include "gnetworkmonitorbase.h" 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_OSX_NETWORK_MONITOR (g_osx_network_monitor_get_type ()) 31 | G_DECLARE_FINAL_TYPE (GOsxNetworkMonitor, g_osx_network_monitor, G, OSX_NETWORK_MONITOR, GNetworkMonitorBase); 32 | 33 | G_END_DECLS 34 | 35 | #endif /* __G_OSX_NETWORK_MONITOR_H__ */ -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gwakeup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Canonical Limited 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #ifndef __G_WAKEUP_H__ 23 | #define __G_WAKEUP_H__ 24 | 25 | #include 26 | 27 | typedef struct _GWakeup GWakeup; 28 | 29 | GWakeup * g_wakeup_new (void); 30 | void g_wakeup_free (GWakeup *wakeup); 31 | 32 | void g_wakeup_get_pollfd (GWakeup *wakeup, 33 | GPollFD *poll_fd); 34 | void g_wakeup_signal (GWakeup *wakeup); 35 | void g_wakeup_acknowledge (GWakeup *wakeup); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/glib-mirroring-tab/packtab.h: -------------------------------------------------------------------------------- 1 | /* PackTab - Pack a static table 2 | * Copyright (C) 2001 Behdad Esfahbod. 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this library; if not, see . 16 | * 17 | * For licensing issues, contact . 18 | */ 19 | 20 | #ifndef PACKTAB_H 21 | #define PACKTAB_H 22 | 23 | #ifdef __cplusplus 24 | extern "C" 25 | { 26 | #endif 27 | 28 | #define packtab_version 3 29 | 30 | int pack_table ( 31 | const signed int *base, 32 | long key_num, 33 | int key_size, 34 | signed int default_key, 35 | int max_depth, 36 | int tab_width, 37 | const char *const *name, 38 | const char *key_type_name, 39 | const char *table_name, 40 | const char *macro_name, 41 | FILE *out 42 | ); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif /* PACKTAB_H */ 49 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/guuid.h: -------------------------------------------------------------------------------- 1 | /* guuid.h - UUID functions 2 | * 3 | * Copyright (C) 2013-2015, 2017 Red Hat, Inc. 4 | * 5 | * This library is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU Lesser General Public License as 7 | * published by the Free Software Foundation; either version 2.1 of the 8 | * licence, or (at your option) any later version. 9 | * 10 | * This is distributed in the hope that it will be useful, but WITHOUT 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 | * License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public 16 | * License along with this library; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 18 | * USA. 19 | * 20 | * Authors: Marc-André Lureau 21 | */ 22 | 23 | #ifndef __G_UUID_H__ 24 | #define __G_UUID_H__ 25 | 26 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 27 | #error "Only can be included directly." 28 | #endif 29 | 30 | #include 31 | 32 | G_BEGIN_DECLS 33 | 34 | GLIB_AVAILABLE_IN_2_52 35 | gboolean g_uuid_string_is_valid (const gchar *str); 36 | 37 | GLIB_AVAILABLE_IN_2_52 38 | gchar * g_uuid_string_random (void); 39 | 40 | G_END_DECLS 41 | 42 | #endif /* __G_UUID_H__ */ 43 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/giowin32-afunix.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2022 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef GIOWIN32_AFUNIX_H_ 22 | #define GIOWIN32_AFUNIX_H_ 23 | 24 | #ifdef HAVE_AFUNIX_H 25 | #include 26 | #else 27 | 28 | /* 29 | * Fallback definitions of things we need in afunix.h, if not available from the 30 | * used Windows SDK or MinGW headers. 31 | */ 32 | #define UNIX_PATH_MAX 108 33 | 34 | typedef struct sockaddr_un { 35 | ADDRESS_FAMILY sun_family; 36 | char sun_path[UNIX_PATH_MAX]; 37 | } SOCKADDR_UN, *PSOCKADDR_UN; 38 | 39 | #define SIO_AF_UNIX_GETPEERPID _WSAIOR(IOC_VENDOR, 256) 40 | #endif 41 | 42 | #endif /* GIOWIN32_AFUNIX_H_*/ 43 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gnetworkingprivate.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2008 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_NETWORKINGPRIVATE_H__ 22 | #define __G_NETWORKINGPRIVATE_H__ 23 | 24 | #include "gnetworking.h" 25 | #include "gresolver.h" 26 | 27 | G_BEGIN_DECLS 28 | 29 | guint64 g_resolver_get_serial (GResolver *resolver); 30 | 31 | gint g_socket (gint domain, 32 | gint type, 33 | gint protocol, 34 | GError **error); 35 | 36 | gboolean g_getservbyname_ntohs (const char *name, const char *proto, guint16 *out_port); 37 | 38 | G_END_DECLS 39 | 40 | #endif /* __G_NETWORKINGPRIVATE_H__ */ 41 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/inotify/inotify-sub.h: -------------------------------------------------------------------------------- 1 | /* inotify-sub.h - GVFS Directory Monitor using inotify 2 | 3 | Copyright (C) 2006 John McCutchan 4 | 5 | SPDX-License-Identifier: LGPL-2.1-or-later 6 | 7 | This library is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU Lesser General Public 9 | License as published by the Free Software Foundation; either 10 | version 2.1 of the License, or (at your option) any later version. 11 | 12 | This library is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with this library; if not, see . 19 | 20 | Author: John McCutchan 21 | */ 22 | 23 | 24 | #ifndef __INOTIFY_SUB_H 25 | #define __INOTIFY_SUB_H 26 | 27 | typedef struct 28 | { 29 | gchar* dirname; 30 | gchar* filename; 31 | gboolean cancelled; 32 | gpointer user_data; 33 | gboolean pair_moves; 34 | gboolean hardlinks; 35 | } inotify_sub; 36 | 37 | inotify_sub *_ih_sub_new (const gchar *dirname, 38 | const gchar *basename, 39 | const gchar *filename, 40 | gpointer user_data); 41 | void _ih_sub_free (inotify_sub *sub); 42 | 43 | #endif /* __INOTIFY_SUB_H */ 44 | -------------------------------------------------------------------------------- /deps/mesa/include/licenses/MIT: -------------------------------------------------------------------------------- 1 | Valid-License-Identifier: MIT 2 | SPDX-URL: https://spdx.org/licenses/MIT.html 3 | Usage-Guide: 4 | To use the MIT License put the following SPDX tag/value pair into a 5 | comment according to the placement guidelines in the licensing rules 6 | documentation: 7 | SPDX-License-Identifier: MIT 8 | License-Text: 9 | 10 | MIT License 11 | 12 | Copyright (c) 13 | 14 | Permission is hereby granted, free of charge, to any person obtaining a 15 | copy of this software and associated documentation files (the "Software"), 16 | to deal in the Software without restriction, including without limitation 17 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | and/or sell copies of the Software, and to permit persons to whom the 19 | Software is furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in 22 | all copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | DEALINGS IN THE SOFTWARE. 31 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/xdgmime/xdgmimealias.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C; c-file-style: "gnu" -*- */ 2 | /* xdgmimealias.h: Private file. Datastructure for storing the aliases. 3 | * 4 | * More info can be found at http://www.freedesktop.org/standards/ 5 | * 6 | * Copyright (C) 2004 Red Hat, Inc. 7 | * Copyright (C) 200 Matthias Clasen 8 | * 9 | * SPDX-License-Identifier: LGPL-2.1-or-later or AFL-2.0 10 | */ 11 | 12 | #ifndef __XDG_MIME_ALIAS_H__ 13 | #define __XDG_MIME_ALIAS_H__ 14 | 15 | #include "xdgmime.h" 16 | 17 | typedef struct XdgAliasList XdgAliasList; 18 | 19 | #ifdef XDG_PREFIX 20 | #define _xdg_mime_alias_read_from_file XDG_RESERVED_ENTRY(alias_read_from_file) 21 | #define _xdg_mime_alias_list_new XDG_RESERVED_ENTRY(alias_list_new) 22 | #define _xdg_mime_alias_list_free XDG_RESERVED_ENTRY(alias_list_free) 23 | #define _xdg_mime_alias_list_lookup XDG_RESERVED_ENTRY(alias_list_lookup) 24 | #define _xdg_mime_alias_list_dump XDG_RESERVED_ENTRY(alias_list_dump) 25 | #endif 26 | 27 | void _xdg_mime_alias_read_from_file (XdgAliasList *list, 28 | const char *file_name); 29 | XdgAliasList *_xdg_mime_alias_list_new (void); 30 | void _xdg_mime_alias_list_free (XdgAliasList *list); 31 | const char *_xdg_mime_alias_list_lookup (XdgAliasList *list, 32 | const char *alias); 33 | void _xdg_mime_alias_list_dump (XdgAliasList *list); 34 | 35 | #endif /* __XDG_MIME_ALIAS_H__ */ 36 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/giowin32-priv.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2012 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Colin Walters 21 | */ 22 | 23 | #ifndef __G_IO_WIN32_PRIV_H__ 24 | #define __G_IO_WIN32_PRIV_H__ 25 | 26 | #include "gwin32inputstream.h" 27 | #include "gwin32outputstream.h" 28 | 29 | G_BEGIN_DECLS 30 | 31 | G_GNUC_INTERNAL 32 | GInputStream * 33 | g_win32_input_stream_new_from_fd (gint fd, 34 | gboolean close_fd); 35 | 36 | GOutputStream * 37 | g_win32_output_stream_new_from_fd (gint fd, 38 | gboolean close_fd); 39 | 40 | void 41 | gio_win32_appinfo_init (gboolean do_wait); 42 | G_END_DECLS 43 | 44 | #endif /* __G_IO_MODULE_PRIV_H__ */ 45 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gobject/gsourceclosure.h: -------------------------------------------------------------------------------- 1 | /* GObject - GLib Type, Object, Parameter and Signal Library 2 | * Copyright (C) 2001 Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General 17 | * Public License along with this library; if not, see . 18 | */ 19 | #ifndef __G_SOURCECLOSURE_H__ 20 | #define __G_SOURCECLOSURE_H__ 21 | 22 | #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) 23 | #error "Only can be included directly." 24 | #endif 25 | 26 | #include 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | GOBJECT_AVAILABLE_IN_ALL 32 | void g_source_set_closure (GSource *source, 33 | GClosure *closure); 34 | 35 | GOBJECT_AVAILABLE_IN_ALL 36 | void g_source_set_dummy_callback (GSource *source); 37 | 38 | G_END_DECLS 39 | 40 | #endif /* __G_SOURCECLOSURE_H__ */ 41 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/xdgmime/xdgmimeparent.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C; c-file-style: "gnu" -*- */ 2 | /* xdgmimeparent.h: Private file. Datastructure for storing the hierarchy. 3 | * 4 | * More info can be found at http://www.freedesktop.org/standards/ 5 | * 6 | * Copyright (C) 2004 Red Hat, Inc. 7 | * Copyright (C) 200 Matthias Clasen 8 | * 9 | * SPDX-License-Identifier: LGPL-2.1-or-later or AFL-2.0 10 | */ 11 | 12 | #ifndef __XDG_MIME_PARENT_H__ 13 | #define __XDG_MIME_PARENT_H__ 14 | 15 | #include "xdgmime.h" 16 | 17 | typedef struct XdgParentList XdgParentList; 18 | 19 | #ifdef XDG_PREFIX 20 | #define _xdg_mime_parent_read_from_file XDG_RESERVED_ENTRY(parent_read_from_file) 21 | #define _xdg_mime_parent_list_new XDG_RESERVED_ENTRY(parent_list_new) 22 | #define _xdg_mime_parent_list_free XDG_RESERVED_ENTRY(parent_list_free) 23 | #define _xdg_mime_parent_list_lookup XDG_RESERVED_ENTRY(parent_list_lookup) 24 | #define _xdg_mime_parent_list_dump XDG_RESERVED_ENTRY(parent_list_dump) 25 | #endif 26 | 27 | void _xdg_mime_parent_read_from_file (XdgParentList *list, 28 | const char *file_name); 29 | XdgParentList *_xdg_mime_parent_list_new (void); 30 | void _xdg_mime_parent_list_free (XdgParentList *list); 31 | const char **_xdg_mime_parent_list_lookup (XdgParentList *list, 32 | const char *mime); 33 | void _xdg_mime_parent_list_dump (XdgParentList *list); 34 | 35 | #endif /* __XDG_MIME_PARENT_H__ */ 36 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gasynchelper.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_ASYNC_HELPER_H__ 24 | #define __G_ASYNC_HELPER_H__ 25 | 26 | #include 27 | 28 | #ifdef G_OS_WIN32 29 | #include 30 | #endif 31 | 32 | G_BEGIN_DECLS 33 | 34 | #ifdef G_OS_WIN32 35 | gboolean _g_win32_overlap_wait_result (HANDLE hfile, 36 | OVERLAPPED *overlap, 37 | DWORD *transferred, 38 | GCancellable *cancellable); 39 | #endif 40 | 41 | G_END_DECLS 42 | 43 | #endif /* __G_ASYNC_HELPER_H__ */ 44 | -------------------------------------------------------------------------------- /deps/mesa/include/gbm/backend.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Intel Corporation 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice (including the next 12 | * paragraph) shall be included in all copies or substantial portions of the 13 | * Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 | * DEALINGS IN THE SOFTWARE. 23 | * 24 | * Authors: 25 | * Benjamin Franzke 26 | */ 27 | 28 | #ifndef MODULE_H_ 29 | #define MODULE_H_ 30 | 31 | #include "gbmint.h" 32 | 33 | struct gbm_device * 34 | _gbm_create_device(int fd); 35 | 36 | void 37 | _gbm_device_destroy(struct gbm_device *gbm); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsandbox.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2022 Canonical Ltd 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_SANDBOX_H__ 22 | #define __G_SANDBOX_H__ 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | /* 29 | * GSandboxType: 30 | * @G_SANDBOX_TYPE_UNKNOWN: process is running inside an unknown or no sandbox. 31 | * @G_SANDBOX_TYPE_FLATPAK: process is running inside a flatpak sandbox. 32 | * @G_SANDBOX_TYPE_SNAP: process is running inside a snap sandbox. 33 | * 34 | * The type of sandbox that processes can be running inside. 35 | */ 36 | typedef enum 37 | { 38 | G_SANDBOX_TYPE_UNKNOWN, 39 | G_SANDBOX_TYPE_FLATPAK, 40 | G_SANDBOX_TYPE_SNAP 41 | } GSandboxType; 42 | 43 | GSandboxType glib_get_sandbox_type (void); 44 | 45 | G_END_DECLS 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gthreadedresolver.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2008 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_THREADED_RESOLVER_H__ 22 | #define __G_THREADED_RESOLVER_H__ 23 | 24 | #include 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | /** 30 | * GThreadedResolver: 31 | * 32 | * #GThreadedResolver is an implementation of #GResolver which calls the libc 33 | * lookup functions in threads to allow them to run asynchronously. 34 | * 35 | * Since: 2.20 36 | */ 37 | #define G_TYPE_THREADED_RESOLVER (g_threaded_resolver_get_type ()) 38 | 39 | GIO_AVAILABLE_IN_ALL 40 | G_DECLARE_FINAL_TYPE (GThreadedResolver, g_threaded_resolver, G, THREADED_RESOLVER, GResolver) 41 | 42 | G_END_DECLS 43 | 44 | #endif /* __G_RESOLVER_H__ */ 45 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gi18n-lib.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __G_I18N_LIB_H__ 21 | #define __G_I18N_LIB_H__ 22 | 23 | #include 24 | 25 | #include 26 | #include 27 | 28 | #ifndef GETTEXT_PACKAGE 29 | #error You must define GETTEXT_PACKAGE before including gi18n-lib.h. Did you forget to include config.h? 30 | #endif 31 | 32 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String)) 33 | #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0) 34 | #define N_(String) (String) 35 | #define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1) 36 | #define NC_(Context, String) (String) 37 | 38 | #endif /* __G_I18N_LIB_H__ */ 39 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/glibintl.h: -------------------------------------------------------------------------------- 1 | #ifndef __GLIBINTL_H__ 2 | #define __GLIBINTL_H__ 3 | 4 | #ifndef SIZEOF_CHAR 5 | #error "config.h must be included prior to glibintl.h" 6 | #endif 7 | 8 | GLIB_AVAILABLE_IN_ALL 9 | const gchar * glib_gettext (const gchar *str) G_GNUC_FORMAT(1); 10 | GLIB_AVAILABLE_IN_ALL 11 | const gchar * glib_pgettext (const gchar *msgctxtid, 12 | gsize msgidoffset) G_GNUC_FORMAT(1); 13 | 14 | #ifdef ENABLE_NLS 15 | 16 | #include 17 | #define _(String) glib_gettext(String) 18 | /* Split out this in the code, but keep it in the same domain for now */ 19 | #define P_(String) glib_gettext(String) 20 | #define C_(Context,String) glib_pgettext (Context "\004" String, strlen (Context) + 1) 21 | 22 | #ifdef gettext_noop 23 | #define N_(String) gettext_noop(String) 24 | #else 25 | #define N_(String) (String) 26 | #endif 27 | #else /* NLS is disabled */ 28 | #define _(String) (String) 29 | #define N_(String) (String) 30 | #define P_(String) (String) 31 | #define C_(Context,String) (String) 32 | #define textdomain(String) ((String) ? (String) : "messages") 33 | #define gettext(String) (String) 34 | #define dgettext(Domain,String) (String) 35 | #define dcgettext(Domain,String,Type) (String) 36 | #define dngettext(Domain,String1,String2,N) ((N) == 1 ? (String1) : (String2)) 37 | #define bindtextdomain(Domain,Directory) (Domain) 38 | #define bind_textdomain_codeset(Domain,Codeset) 39 | #endif 40 | 41 | /* not really I18N-related, but also a string marker macro */ 42 | #define I_(string) g_intern_static_string (string) 43 | 44 | #endif /* __GLIBINTL_H__ */ 45 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gwin32sid.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2018 Руслан Ижбулатов 4 | * Copyright (C) 2022 Red Hat, Inc. 5 | * 6 | * SPDX-License-Identifier: LGPL-2.1-or-later 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General 19 | * Public License along with this library; if not, see . 20 | * 21 | * Author: Руслан Ижбулатов 22 | */ 23 | 24 | #ifndef __G_WIN32_SID_H__ 25 | #define __G_WIN32_SID_H__ 26 | 27 | #include 28 | #include 29 | 30 | G_BEGIN_DECLS 31 | 32 | SID * _g_win32_process_get_access_token_sid (DWORD process_id, 33 | GError **error); 34 | 35 | gchar * _g_win32_sid_to_string (SID *sid, 36 | GError **error); 37 | 38 | gchar * _g_win32_current_process_sid_string (GError **error); 39 | 40 | G_END_DECLS 41 | 42 | #endif /* __G_WIN32_SID_H__ */ 43 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gio_trace.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * 3 | * Copyright (C) 2009,2010 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __GIOTRACE_H__ 24 | #define __GIOTRACE_H__ 25 | 26 | #ifndef SIZEOF_CHAR 27 | #error "config.h must be included prior to gio_trace.h" 28 | #endif 29 | 30 | /* Ignore probes when doing static analysis, as they do weird things which 31 | * confuses the analyser. */ 32 | #if defined(HAVE_DTRACE) && !defined(__clang_analyzer__) 33 | 34 | /* include the generated probes header and put markers in code */ 35 | #include "gio_probes.h" 36 | #define TRACE(probe) probe 37 | 38 | #else 39 | 40 | /* Wrap the probe to allow it to be removed when no systemtap available */ 41 | #define TRACE(probe) 42 | 43 | #endif 44 | 45 | #endif /* __GIOTRACE_H__ */ 46 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/glib_trace.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * 3 | * Copyright (C) 2009,2010 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __GLIBTRACE_H__ 24 | #define __GLIBTRACE_H__ 25 | 26 | #ifndef SIZEOF_CHAR 27 | #error "config.h must be included prior to glib_trace.h" 28 | #endif 29 | 30 | /* Ignore probes when doing static analysis, as they do weird things which 31 | * confuses the analyser. */ 32 | #if defined(HAVE_DTRACE) && !defined(__clang_analyzer__) 33 | 34 | /* include the generated probes header and put markers in code */ 35 | #include "glib_probes.h" 36 | #define TRACE(probe) probe 37 | 38 | #else 39 | 40 | /* Wrap the probe to allow it to be removed when no systemtap available */ 41 | #define TRACE(probe) 42 | 43 | #endif 44 | 45 | #endif /* __GLIBTRACE_H__ */ 46 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/g-gnulib.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 2003 Matthias Clasen 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, see . 16 | */ 17 | #ifndef __G_GNULIB_H__ 18 | 19 | #include "config.h" 20 | #include 21 | #include "glib/glib.h" 22 | 23 | /* Private namespace for gnulib functions */ 24 | #define asnprintf _g_gnulib_asnprintf 25 | #define vasnprintf _g_gnulib_vasnprintf 26 | #define printf_parse _g_gnulib_printf_parse 27 | #define printf_fetchargs _g_gnulib_printf_fetchargs 28 | 29 | /* Use GLib memory allocation */ 30 | #undef malloc 31 | #undef realloc 32 | #undef free 33 | #define malloc g_malloc 34 | #define realloc g_realloc 35 | #define free g_free 36 | 37 | /* Ensure only C99 snprintf gets used */ 38 | #undef HAVE_SNPRINTF 39 | #ifdef HAVE_C99_SNPRINTF 40 | #define HAVE_SNPRINTF 1 41 | #else 42 | #define HAVE_SNPRINTF 0 43 | #endif 44 | 45 | 46 | #endif /* __G_GNULIB_H__ */ 47 | -------------------------------------------------------------------------------- /deps/drm/include/xf86drmRandom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 3 | * All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a 6 | * copy of this software and associated documentation files (the "Software"), 7 | * to deal in the Software without restriction, including without limitation 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | * and/or sell copies of the Software, and to permit persons to whom the 10 | * Software is furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice (including the next 13 | * paragraph) shall be included in all copies or substantial portions of the 14 | * Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 | * DEALINGS IN THE SOFTWARE. 23 | * 24 | * Authors: Rickard E. (Rik) Faith 25 | */ 26 | 27 | typedef struct RandomState { 28 | unsigned long magic; 29 | unsigned long a; 30 | unsigned long m; 31 | unsigned long q; /* m div a */ 32 | unsigned long r; /* m mod a */ 33 | unsigned long check; 34 | unsigned long seed; 35 | } RandomState; 36 | -------------------------------------------------------------------------------- /deps/drm/include/util_math.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Advanced Micro Devices, Inc. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 | * OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | */ 23 | 24 | #ifndef _UTIL_MATH_H_ 25 | #define _UTIL_MATH_H_ 26 | 27 | #define MIN2( A, B ) ( (A)<(B) ? (A) : (B) ) 28 | #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) 29 | #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C)) 30 | 31 | #define __align_mask(value, mask) (((value) + (mask)) & ~(mask)) 32 | #define ALIGN(value, alignment) __align_mask(value, (__typeof__(value))((alignment) - 1)) 33 | 34 | #endif /*_UTIL_MATH_H_*/ 35 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gobject/gobject-autocleanups.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2015 Canonical Limited 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) 23 | #error "Only can be included directly." 24 | #endif 25 | 26 | #ifndef __GI_SCANNER__ 27 | 28 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref) 29 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GEnumClass, g_type_class_unref) 30 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFlagsClass, g_type_class_unref) 31 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref) 32 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref) 33 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GParamSpec, g_param_spec_unref) 34 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTypeClass, g_type_class_unref) 35 | G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset) 36 | 37 | #endif /* __GI_SCANNER__ */ 38 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gobject/gobject_trace.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * 3 | * Copyright (C) 2009,2010 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __GOBJECTTRACE_H__ 24 | #define __GOBJECTTRACE_H__ 25 | 26 | #ifndef SIZEOF_CHAR 27 | #error "config.h must be included prior to gobject_trace.h" 28 | #endif 29 | 30 | /* Ignore probes when doing static analysis, as they do weird things which 31 | * confuses the analyser. */ 32 | #if defined(HAVE_DTRACE) && !defined(__clang_analyzer__) 33 | 34 | /* include the generated probes header and put markers in code */ 35 | #include "gobject_probes.h" 36 | #define TRACE(probe) probe 37 | 38 | #else 39 | 40 | /* Wrap the probe to allow it to be removed when no systemtap available */ 41 | #define TRACE(probe) 42 | 43 | #endif 44 | 45 | #endif /* __GOBJECTTRACE_H__ */ 46 | -------------------------------------------------------------------------------- /deps/udev/include/LICENSES/BSD-3-Clause.txt: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Chromium OS Authors. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the names of its 14 | // contributors may be used to endorse or promote products derived from 15 | // this software without specific prior written permission. 16 | // 17 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/isnanf-nolibm.h: -------------------------------------------------------------------------------- 1 | /* Test for NaN that does not need libm. 2 | Copyright (C) 2007-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU Lesser General PublicLicense as published by 6 | the Free Software Foundation; either version 2.1 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General PublicLicense for more details. 13 | 14 | You should have received a copy of the GNU Lesser General PublicLicense 15 | along with this program. If not, see . */ 16 | 17 | #if HAVE_ISNANF_IN_LIBC 18 | /* Get declaration of isnan macro or (older) isnanf function. */ 19 | # include 20 | # if __GNUC__ >= 4 21 | /* GCC 4.0 and newer provides three built-ins for isnan. */ 22 | # undef isnanf 23 | # define isnanf(x) __builtin_isnanf ((float)(x)) 24 | # elif defined isnan 25 | # undef isnanf 26 | # define isnanf(x) isnan ((float)(x)) 27 | # else 28 | /* Get declaration of isnanf(), if not declared in . */ 29 | # if defined __sgi 30 | /* We can't include , because it conflicts with our definition of 31 | isnand. Therefore declare isnanf separately. */ 32 | extern int isnanf (float x); 33 | # endif 34 | # endif 35 | #else 36 | /* Test whether X is a NaN. */ 37 | # undef isnanf 38 | # define isnanf rpl_isnanf 39 | extern int isnanf (float x); 40 | #endif 41 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gconvertprivate.h: -------------------------------------------------------------------------------- 1 | /* gconvertprivate.h - Private GLib gconvert functions 2 | * 3 | * Copyright 2020 Frederic Martinsons 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_CONVERTPRIVATE_H__ 22 | #define __G_CONVERTPRIVATE_H__ 23 | 24 | G_BEGIN_DECLS 25 | 26 | #include "glib.h" 27 | 28 | gchar *_g_time_locale_to_utf8 (const gchar *opsysstring, 29 | gssize len, 30 | gsize *bytes_read, 31 | gsize *bytes_written, 32 | GError **error) G_GNUC_MALLOC; 33 | 34 | gchar *_g_ctype_locale_to_utf8 (const gchar *opsysstring, 35 | gssize len, 36 | gsize *bytes_read, 37 | gsize *bytes_written, 38 | GError **error) G_GNUC_MALLOC; 39 | 40 | G_END_DECLS 41 | 42 | #endif /* __G_CONVERTPRIVATE_H__ */ 43 | -------------------------------------------------------------------------------- /deps/mesa/include/licenses/BSL-1.0: -------------------------------------------------------------------------------- 1 | Valid-License-Identifier: BSL-1.0 2 | SPDX-URL: https://spdx.org/licenses/BSL-1.0.html 3 | Usage-Guide: 4 | To use the BSL-1.0 License put the following SPDX tag/value pair into a 5 | comment according to the placement guidelines in the licensing rules 6 | documentation: 7 | SPDX-License-Identifier: BSL-1.0 8 | License-Text: 9 | 10 | Boost Software License - Version 1.0 - August 17th, 2003 11 | 12 | Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: 13 | 14 | The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 17 | 18 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gwin32file-sync-stream.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2020 Руслан Ижбулатов 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | */ 21 | #ifndef __G_WIN32_FILE_SYNC_STREAM_H__ 22 | #define __G_WIN32_FILE_SYNC_STREAM_H__ 23 | 24 | #include 25 | 26 | #ifdef G_PLATFORM_WIN32 27 | 28 | typedef struct _GWin32FileSyncStream GWin32FileSyncStream; 29 | 30 | struct _GWin32FileSyncStream 31 | { 32 | IStream self; 33 | ULONG ref_count; 34 | HANDLE file_handle; 35 | gboolean owns_handle; 36 | DWORD stgm_mode; 37 | }; 38 | 39 | IStream *g_win32_file_sync_stream_new (HANDLE file_handle, 40 | gboolean owns_handle, 41 | DWORD stgm_mode, 42 | HRESULT *output_hresult); 43 | 44 | #endif /* G_PLATFORM_WIN32 */ 45 | 46 | #endif /* __G_WIN32_FILE_SYNC_STREAM_H__ */ -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/ghostutils.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 2008 Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General 17 | * Public License along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __G_HOST_UTILS_H__ 21 | #define __G_HOST_UTILS_H__ 22 | 23 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 24 | #error "Only can be included directly." 25 | #endif 26 | 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | GLIB_AVAILABLE_IN_ALL 32 | gboolean g_hostname_is_non_ascii (const gchar *hostname); 33 | GLIB_AVAILABLE_IN_ALL 34 | gboolean g_hostname_is_ascii_encoded (const gchar *hostname); 35 | GLIB_AVAILABLE_IN_ALL 36 | gboolean g_hostname_is_ip_address (const gchar *hostname); 37 | 38 | GLIB_AVAILABLE_IN_ALL 39 | gchar *g_hostname_to_ascii (const gchar *hostname); 40 | GLIB_AVAILABLE_IN_ALL 41 | gchar *g_hostname_to_unicode (const gchar *hostname); 42 | 43 | G_END_DECLS 44 | 45 | #endif /* __G_HOST_UTILS_H__ */ 46 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/libcharset/localcharset.h: -------------------------------------------------------------------------------- 1 | /* Determine a canonical name for the current locale's character encoding. 2 | Copyright (C) 2000-2003 Free Software Foundation, Inc. 3 | This file is part of the GNU CHARSET Library. 4 | 5 | This program is free software; you can redistribute it and/or modify it 6 | under the terms of the GNU Library General Public License as published 7 | by the Free Software Foundation; either version 2, or (at your option) 8 | any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 18 | USA. */ 19 | 20 | #ifndef _LOCALCHARSET_H 21 | #define _LOCALCHARSET_H 22 | 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | 29 | /* Determine the current locale's character encoding, and canonicalize it 30 | into one of the canonical names listed in config.charset. 31 | The result must not be freed; it is statically allocated. 32 | If the canonical name cannot be determined, the result is a non-canonical 33 | name. */ 34 | extern const char * _g_locale_charset_raw (void); 35 | extern const char * _g_locale_charset_unalias (const char *codeset); 36 | extern const char * _g_locale_get_charset_aliases (void); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | 43 | #endif /* _LOCALCHARSET_H */ 44 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/libcharset/libcharset.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2003 Free Software Foundation, Inc. 2 | This file is part of the GNU CHARSET Library. 3 | 4 | The GNU CHARSET Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Library General Public License as 6 | published by the Free Software Foundation; either version 2 of the 7 | License, or (at your option) any later version. 8 | 9 | The GNU CHARSET Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Library General Public License for more details. 13 | 14 | You should have received a copy of the GNU Library General Public License 15 | along with the GNU CHARSET Library; see the file COPYING.LIB. If not, 16 | write to the Free Software Foundation, Inc., 51 Franklin Street, 17 | Fifth Floor, Boston, MA 02110-1301, USA. */ 18 | 19 | #ifndef _LIBCHARSET_H 20 | #define _LIBCHARSET_H 21 | 22 | #include "localcharset.h" 23 | 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | 30 | /* Support for relocatable packages. */ 31 | 32 | /* Sets the original and the current installation prefix of the package. 33 | Relocation simply replaces a pathname starting with the original prefix 34 | by the corresponding pathname with the current prefix instead. Both 35 | prefixes should be directory names without trailing slash (i.e. use "" 36 | instead of "/"). */ 37 | extern void libcharset_set_relocation_prefix (const char *orig_prefix, 38 | const char *curr_prefix); 39 | 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | 46 | #endif /* _LIBCHARSET_H */ 47 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/glib-object.h: -------------------------------------------------------------------------------- 1 | /* GObject - GLib Type, Object, Parameter and Signal Library 2 | * Copyright (C) 1998, 1999, 2000 Tim Janik and Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General 17 | * Public License along with this library; if not, see . 18 | */ 19 | #ifndef __GLIB_GOBJECT_H__ 20 | #define __GLIB_GOBJECT_H__ 21 | 22 | #define __GLIB_GOBJECT_H_INSIDE__ 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | 42 | #include 43 | 44 | #undef __GLIB_GOBJECT_H_INSIDE__ 45 | 46 | #endif /* __GLIB_GOBJECT_H__ */ 47 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gbytesicon.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Ryan Lortie 21 | */ 22 | 23 | #ifndef __G_BYTES_ICON_H__ 24 | #define __G_BYTES_ICON_H__ 25 | 26 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 27 | #error "Only can be included directly." 28 | #endif 29 | 30 | #include 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define G_TYPE_BYTES_ICON (g_bytes_icon_get_type ()) 35 | #define G_BYTES_ICON(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_BYTES_ICON, GBytesIcon)) 36 | #define G_IS_BYTES_ICON(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_BYTES_ICON)) 37 | 38 | GIO_AVAILABLE_IN_2_38 39 | GType g_bytes_icon_get_type (void) G_GNUC_CONST; 40 | 41 | GIO_AVAILABLE_IN_2_38 42 | GIcon * g_bytes_icon_new (GBytes *bytes); 43 | 44 | GIO_AVAILABLE_IN_2_38 45 | GBytes * g_bytes_icon_get_bytes (GBytesIcon *icon); 46 | 47 | G_END_DECLS 48 | 49 | #endif /* __G_BYTES_ICON_H__ */ 50 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gthreadedresolver-private.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2008 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_THREADED_RESOLVER_PRIVATE_H__ 22 | #define __G_THREADED_RESOLVER_PRIVATE_H__ 23 | 24 | #include 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | /* Used for a private test API */ 30 | #ifdef G_OS_UNIX 31 | /*< private >*/ 32 | GIO_AVAILABLE_IN_ALL 33 | GList *g_resolver_records_from_res_query (const gchar *rrname, 34 | gint rrtype, 35 | const guint8 *answer, 36 | gssize len, 37 | gint herr, 38 | GError **error); 39 | /*< private >*/ 40 | GIO_AVAILABLE_IN_ALL 41 | gint g_resolver_record_type_to_rrtype (GResolverRecordType type); 42 | #endif 43 | 44 | G_END_DECLS 45 | 46 | #endif /* __G_RESOLVER_PRIVATE_H__ */ 47 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/xdgmime/xdgmimemagic.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C; c-file-style: "gnu" -*- */ 2 | /* xdgmimemagic.h: Private file. Datastructure for storing the magic files. 3 | * 4 | * More info can be found at http://www.freedesktop.org/standards/ 5 | * 6 | * Copyright (C) 2003 Red Hat, Inc. 7 | * Copyright (C) 2003 Jonathan Blandford 8 | * 9 | * SPDX-License-Identifier: LGPL-2.1-or-later or AFL-2.0 10 | */ 11 | 12 | #ifndef __XDG_MIME_MAGIC_H__ 13 | #define __XDG_MIME_MAGIC_H__ 14 | 15 | #include 16 | #include "xdgmime.h" 17 | typedef struct XdgMimeMagic XdgMimeMagic; 18 | 19 | #ifdef XDG_PREFIX 20 | #define _xdg_mime_glob_read_from_file XDG_RESERVED_ENTRY(glob_read_from_file) 21 | #define _xdg_mime_magic_new XDG_RESERVED_ENTRY(magic_new) 22 | #define _xdg_mime_magic_read_from_file XDG_RESERVED_ENTRY(magic_read_from_file) 23 | #define _xdg_mime_magic_free XDG_RESERVED_ENTRY(magic_free) 24 | #define _xdg_mime_magic_get_buffer_extents XDG_RESERVED_ENTRY(magic_get_buffer_extents) 25 | #define _xdg_mime_magic_lookup_data XDG_RESERVED_ENTRY(magic_lookup_data) 26 | #endif 27 | 28 | 29 | XdgMimeMagic *_xdg_mime_magic_new (void); 30 | void _xdg_mime_magic_read_from_file (XdgMimeMagic *mime_magic, 31 | const char *file_name); 32 | void _xdg_mime_magic_free (XdgMimeMagic *mime_magic); 33 | int _xdg_mime_magic_get_buffer_extents (XdgMimeMagic *mime_magic); 34 | const char *_xdg_mime_magic_lookup_data (XdgMimeMagic *mime_magic, 35 | const void *data, 36 | size_t len, 37 | int *result_prio, 38 | const char *mime_types[], 39 | int n_mime_types); 40 | 41 | #endif /* __XDG_MIME_MAGIC_H__ */ 42 | -------------------------------------------------------------------------------- /deps/mesa/include/gbm/gbmint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Intel Corporation 3 | * Copyright © 2021 NVIDIA Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a 6 | * copy of this software and associated documentation files (the "Software"), 7 | * to deal in the Software without restriction, including without limitation 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | * and/or sell copies of the Software, and to permit persons to whom the 10 | * Software is furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice (including the next 13 | * paragraph) shall be included in all copies or substantial portions of the 14 | * Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 | * DEALINGS IN THE SOFTWARE. 24 | * 25 | * Authors: 26 | * Benjamin Franzke 27 | * James Jones 28 | */ 29 | 30 | #ifndef INTERNAL_H_ 31 | #define INTERNAL_H_ 32 | 33 | #include "gbm_backend_abi.h" 34 | 35 | /* GCC visibility */ 36 | #if defined(__GNUC__) 37 | #define GBM_EXPORT __attribute__ ((visibility("default"))) 38 | #else 39 | #define GBM_EXPORT 40 | #endif 41 | 42 | /** 43 | * \file gbmint.h 44 | * \brief Internal implementation details of gbm 45 | */ 46 | 47 | extern struct gbm_core gbm_core; 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gcharset.h: -------------------------------------------------------------------------------- 1 | /* gcharset.h - Charset functions 2 | * 3 | * Copyright (C) 2011 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_CHARSET_H__ 22 | #define __G_CHARSET_H__ 23 | 24 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 25 | #error "Only can be included directly." 26 | #endif 27 | 28 | #include 29 | 30 | G_BEGIN_DECLS 31 | 32 | GLIB_AVAILABLE_IN_ALL 33 | gboolean g_get_charset (const char **charset); 34 | GLIB_AVAILABLE_IN_ALL 35 | gchar * g_get_codeset (void); 36 | GLIB_AVAILABLE_IN_2_62 37 | gboolean g_get_console_charset (const char **charset); 38 | 39 | GLIB_AVAILABLE_IN_ALL 40 | const gchar * const * g_get_language_names (void); 41 | GLIB_AVAILABLE_IN_2_58 42 | const gchar * const * g_get_language_names_with_category 43 | (const gchar *category_name); 44 | GLIB_AVAILABLE_IN_ALL 45 | gchar ** g_get_locale_variants (const gchar *locale); 46 | 47 | G_END_DECLS 48 | 49 | #endif /* __G_CHARSET_H__ */ 50 | -------------------------------------------------------------------------------- /deps/liburing/compat.h.in: -------------------------------------------------------------------------------- 1 | #ifndef LIBURING_COMPAT_H 2 | #define LIBURING_COMPAT_H 3 | 4 | #undef HAS_KERNEL_RWF_T 5 | #undef HAS_KERNEL_TIMESPEC 6 | #undef HAS_OPENAT_2 7 | #undef HAS_SYS_STAT 8 | #undef HAS_FUTEX_WAITV 9 | #undef HAS_IDTYPE_T 10 | 11 | #if !HAS_KERNEL_RWF_T 12 | typedef int __kernel_rwf_t; 13 | #endif 14 | 15 | #if HAS_KERNEL_TIMESPEC 16 | #include 17 | /* is included above and not needed again */ 18 | #define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H 1 19 | #else 20 | #include 21 | 22 | struct __kernel_timespec { 23 | int64_t tv_sec; 24 | long long tv_nsec; 25 | }; 26 | 27 | /* is not available, so it can't be included */ 28 | #define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H 1 29 | #endif 30 | 31 | #if HAS_OPENAT_2 32 | #include 33 | #else 34 | #include 35 | 36 | struct open_how { 37 | uint64_t flags; 38 | uint64_t mode; 39 | uint64_t resolve; 40 | }; 41 | #endif 42 | 43 | #if HAS_SYS_STAT 44 | #include 45 | #endif 46 | 47 | #if !HAS_FUTEX_WAITV 48 | #include 49 | 50 | #define FUTEX_32 2 51 | #define FUTEX_WAITV_MAX 128 52 | 53 | struct futex_waitv { 54 | uint64_t val; 55 | uint64_t uaddr; 56 | uint32_t flags; 57 | uint32_t __reserved; 58 | }; 59 | #endif 60 | 61 | #if !HAS_IDTYPE_T 62 | typedef enum 63 | { 64 | P_ALL, /* Wait for any child. */ 65 | P_PID, /* Wait for specified process. */ 66 | P_PGID /* Wait for members of process group. */ 67 | } idtype_t; 68 | #endif 69 | 70 | #if __has_include() 71 | #include 72 | #endif 73 | #if __has_include() 74 | #include 75 | #endif 76 | #ifndef BLOCK_URING_CMD_DISCARD 77 | #define BLOCK_URING_CMD_DISCARD _IO(0x12, 0) 78 | #endif 79 | 80 | #endif 81 | 82 | -------------------------------------------------------------------------------- /deps/mesa/include/licenses/SGI-B-2.0: -------------------------------------------------------------------------------- 1 | Valid-License-Identifier: SGI-B-2.0 2 | SPDX-URL: https://spdx.org/licenses/SGI-B-2.0.html 3 | Usage-Guide: 4 | To use the SGI-B-2.0 License put the following SPDX tag/value pair into a 5 | comment according to the placement guidelines in the licensing rules 6 | documentation: 7 | SPDX-License-Identifier: SGI-B-2.0 8 | License-Text: 9 | 10 | SGI FREE SOFTWARE LICENSE B 11 | (Version 2.0, Sept. 18, 2008) 12 | 13 | Copyright (C) [dates of first publication] Silicon Graphics, Inc. All Rights Reserved. 14 | 15 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice including the dates of first publication and either this permission notice or a reference to http://oss.sgi.com/projects/FreeB/ shall be included in all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of Silicon Graphics, Inc. shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Silicon Graphics, Inc. 22 | 23 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/glib-init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Canonical Limited 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #ifndef __GLIB_INIT_H__ 23 | #define __GLIB_INIT_H__ 24 | 25 | #include "gmessages.h" 26 | 27 | extern GLogLevelFlags g_log_always_fatal; 28 | extern GLogLevelFlags g_log_msg_prefix; 29 | 30 | void glib_init (void); 31 | void g_quark_init (void); 32 | void g_error_init (void); 33 | 34 | #ifdef G_OS_WIN32 35 | #include 36 | 37 | void g_thread_win32_process_detach (void); 38 | void g_thread_win32_thread_detach (void); 39 | void g_thread_win32_init (void); 40 | void g_console_win32_init (void); 41 | void g_clock_win32_init (void); 42 | void g_crash_handler_win32_init (void); 43 | void g_crash_handler_win32_deinit (void); 44 | gboolean _g_win32_call_rtl_version (OSVERSIONINFOEXW *info); 45 | 46 | extern HMODULE glib_dll; 47 | gchar *g_win32_find_helper_executable_path (const gchar *process_name, void *dll_handle); 48 | int g_win32_reopen_noninherited (int fd, int mode, GError **err); 49 | gboolean g_win32_handle_is_socket (void *h); 50 | 51 | #endif 52 | 53 | #endif /* __GLIB_INIT_H__ */ 54 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/glib-typeof.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 2021 Iain Lane, Xavier Claessens 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | #ifndef __GLIB_TYPEOF_H__ 21 | #define __GLIB_TYPEOF_H__ 22 | 23 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 24 | #error "Only can be included directly." 25 | #endif 26 | 27 | #include 28 | 29 | /* 30 | * We can only use __typeof__ on GCC >= 4.8, and not when compiling C++. Since 31 | * __typeof__ is used in a few places in GLib, provide a pre-processor symbol 32 | * to factor the check out from callers. 33 | * 34 | * This symbol is private. 35 | */ 36 | #undef glib_typeof 37 | #if !G_CXX_STD_CHECK_VERSION (11) && \ 38 | (G_GNUC_CHECK_VERSION(4, 8) || defined(__clang__)) 39 | #define glib_typeof(t) __typeof__ (t) 40 | #elif G_CXX_STD_CHECK_VERSION (11) && \ 41 | GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_68 42 | /* C++11 decltype() is close enough for our usage */ 43 | #include 44 | #define glib_typeof(t) typename std::remove_reference::type 45 | #endif 46 | 47 | #endif /* __GLIB_TYPEOF_H__ */ 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/giomodule-priv.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_IO_MODULE_PRIV_H__ 24 | #define __G_IO_MODULE_PRIV_H__ 25 | 26 | #include "giomodule.h" 27 | 28 | G_BEGIN_DECLS 29 | 30 | void _g_io_modules_ensure_extension_points_registered (void); 31 | void _g_io_modules_ensure_loaded (void); 32 | 33 | typedef gboolean (*GIOModuleVerifyFunc) (gpointer); 34 | gpointer _g_io_module_get_default (const gchar *extension_point, 35 | const gchar *envvar, 36 | GIOModuleVerifyFunc verify_func); 37 | 38 | GType _g_io_module_get_default_type (const gchar *extension_point, 39 | const gchar *envvar, 40 | guint is_supported_offset); 41 | 42 | #ifdef G_PLATFORM_WIN32 43 | void *_g_io_win32_get_module (void); 44 | #endif 45 | 46 | gchar *_g_io_module_extract_name (const char *filename); 47 | 48 | 49 | G_END_DECLS 50 | 51 | #endif /* __G_IO_MODULE_PRIV_H__ */ 52 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gdbusdaemon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2012 Red Hat, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General 17 | * Public License along with this library; if not, see . 18 | * 19 | * Authors: Alexander Larsson 20 | */ 21 | 22 | #include 23 | 24 | #define G_TYPE_DBUS_DAEMON (_g_dbus_daemon_get_type ()) 25 | #define G_DBUS_DAEMON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_DAEMON, GDBusDaemon)) 26 | #define G_DBUS_DAEMON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), G_TYPE_DBUS_DAEMON, GDBusDaemonClass)) 27 | #define G_DBUS_DAEMON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_DAEMON, GDBusDaemonClass)) 28 | #define G_IS_DBUS_DAEMON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_DAEMON)) 29 | #define G_IS_DBUS_DAEMON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_DAEMON)) 30 | 31 | typedef struct _GDBusDaemon GDBusDaemon; 32 | typedef struct _GDBusDaemonClass GDBusDaemonClass; 33 | 34 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusDaemon, g_object_unref) 35 | 36 | GType _g_dbus_daemon_get_type (void) G_GNUC_CONST; 37 | 38 | GDBusDaemon *_g_dbus_daemon_new (const char *address, 39 | GCancellable *cancellable, 40 | GError **error); 41 | 42 | const char *_g_dbus_daemon_get_address (GDBusDaemon *daemon); 43 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gnulib/printf.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 2003 Matthias Clasen 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, see . 16 | */ 17 | #ifndef __GNULIB_PRINTF_H__ 18 | #define __GNULIB_PRINTF_H__ 19 | 20 | #include 21 | #include 22 | 23 | int _g_gnulib_printf (char const *format, 24 | ...); 25 | int _g_gnulib_fprintf (FILE *file, 26 | char const *format, 27 | ...); 28 | int _g_gnulib_sprintf (char *string, 29 | char const *format, 30 | ...); 31 | int _g_gnulib_snprintf (char *string, 32 | size_t n, 33 | char const *format, 34 | ...); 35 | int _g_gnulib_vprintf (char const *format, 36 | va_list args); 37 | int _g_gnulib_vfprintf (FILE *file, 38 | char const *format, 39 | va_list args); 40 | int _g_gnulib_vsprintf (char *string, 41 | char const *format, 42 | va_list args); 43 | int _g_gnulib_vsnprintf (char *string, 44 | size_t n, 45 | char const *format, 46 | va_list args); 47 | int _g_gnulib_vasprintf (char **result, 48 | char const *format, 49 | va_list args); 50 | 51 | 52 | #endif /* __GNULIB_PRINTF_H__ */ 53 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsettings-mapping.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 Novell, Inc. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Vincent Untz 20 | */ 21 | 22 | #ifndef __G_SETTINGS_MAPPING_H__ 23 | #define __G_SETTINGS_MAPPING_H__ 24 | 25 | #include 26 | 27 | GVariant * g_settings_set_mapping (const GValue *value, 28 | const GVariantType *expected_type, 29 | gpointer user_data); 30 | gboolean g_settings_get_mapping (GValue *value, 31 | GVariant *variant, 32 | gpointer user_data); 33 | gboolean g_settings_mapping_is_compatible (GType gvalue_type, 34 | const GVariantType *variant_type); 35 | 36 | #endif /* __G_SETTINGS_MAPPING_H__ */ 37 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsocks4proxy.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2010 Collabora, Ltd. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Nicolas Dufresne 21 | */ 22 | 23 | #ifndef __G_SOCKS4_PROXY_H__ 24 | #define __G_SOCKS4_PROXY_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_SOCKS4_PROXY (_g_socks4_proxy_get_type ()) 31 | #define G_SOCKS4_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SOCKS4_PROXY, GSocks4Proxy)) 32 | #define G_SOCKS4_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_SOCKS4_PROXY, GSocks4ProxyClass)) 33 | #define G_IS_SOCKS4_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SOCKS4_PROXY)) 34 | #define G_IS_SOCKS4_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SOCKS4_PROXY)) 35 | #define G_SOCKS4_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SOCKS4_PROXY, GSocks4ProxyClass)) 36 | 37 | typedef struct _GSocks4Proxy GSocks4Proxy; 38 | typedef struct _GSocks4ProxyClass GSocks4ProxyClass; 39 | 40 | GType _g_socks4_proxy_get_type (void); 41 | 42 | G_END_DECLS 43 | 44 | #endif /* __SOCKS5_PROXY_H__ */ 45 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsimplepermission.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 Codethink Limited 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #ifndef __G_SIMPLE_PERMISSION_H__ 23 | #define __G_SIMPLE_PERMISSION_H__ 24 | 25 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 26 | #error "Only can be included directly." 27 | #endif 28 | 29 | #include 30 | 31 | G_BEGIN_DECLS 32 | 33 | #define G_TYPE_SIMPLE_PERMISSION (g_simple_permission_get_type ()) 34 | #define G_SIMPLE_PERMISSION(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ 35 | G_TYPE_SIMPLE_PERMISSION, \ 36 | GSimplePermission)) 37 | #define G_IS_SIMPLE_PERMISSION(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ 38 | G_TYPE_SIMPLE_PERMISSION)) 39 | 40 | GIO_AVAILABLE_IN_ALL 41 | GType g_simple_permission_get_type (void); 42 | GIO_AVAILABLE_IN_ALL 43 | GPermission * g_simple_permission_new (gboolean allowed); 44 | 45 | G_END_DECLS 46 | 47 | #endif /* __G_SIMPLE_PERMISSION_H__ */ 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/glocalvfs.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_LOCAL_VFS_H__ 24 | #define __G_LOCAL_VFS_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_LOCAL_VFS (_g_local_vfs_get_type ()) 31 | #define G_LOCAL_VFS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_LOCAL_VFS, GLocalVfs)) 32 | #define G_LOCAL_VFS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_LOCAL_VFS, GLocalVfsClass)) 33 | #define G_IS_LOCAL_VFS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_LOCAL_VFS)) 34 | #define G_IS_LOCAL_VFS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_LOCAL_VFS)) 35 | #define G_LOCAL_VFS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_LOCAL_VFS, GLocalVfsClass)) 36 | 37 | typedef struct _GLocalVfs GLocalVfs; 38 | typedef struct _GLocalVfsClass GLocalVfsClass; 39 | 40 | GType _g_local_vfs_get_type (void) G_GNUC_CONST; 41 | 42 | GVfs * _g_local_vfs_new (void); 43 | 44 | G_END_DECLS 45 | 46 | #endif /* __G_LOCAL_VFS_H__ */ 47 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gprimes.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | /* 21 | * Modified by the GLib Team and others 1997-2000. See the AUTHORS 22 | * file for a list of people on the GLib Team. See the ChangeLog 23 | * files for a list of changes. These files are distributed with 24 | * GLib at ftp://ftp.gtk.org/pub/gtk/. 25 | */ 26 | 27 | #ifndef __G_PRIMES_H__ 28 | #define __G_PRIMES_H__ 29 | 30 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 31 | #error "Only can be included directly." 32 | #endif 33 | 34 | #include 35 | 36 | G_BEGIN_DECLS 37 | 38 | /* Prime numbers. 39 | */ 40 | 41 | /* This function returns prime numbers spaced by approximately 1.5-2.0 42 | * and is for use in resizing data structures which prefer 43 | * prime-valued sizes. The closest spaced prime function returns the 44 | * next largest prime, or the highest it knows about which is about 45 | * MAXINT/4. 46 | */ 47 | GLIB_AVAILABLE_IN_ALL 48 | guint g_spaced_primes_closest (guint num) G_GNUC_CONST; 49 | 50 | G_END_DECLS 51 | 52 | #endif /* __G_PRIMES_H__ */ 53 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gioerror.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_IO_ERROR_H__ 24 | #define __G_IO_ERROR_H__ 25 | 26 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 27 | #error "Only can be included directly." 28 | #endif 29 | 30 | #include 31 | #include 32 | #include 33 | 34 | G_BEGIN_DECLS 35 | 36 | /** 37 | * G_IO_ERROR: 38 | * 39 | * Error domain for GIO. Errors in this domain will be from the #GIOErrorEnum enumeration. 40 | * See #GError for more information on error domains. 41 | **/ 42 | #define G_IO_ERROR g_io_error_quark() 43 | 44 | GIO_AVAILABLE_IN_ALL 45 | GQuark g_io_error_quark (void); 46 | GIO_AVAILABLE_IN_ALL 47 | GIOErrorEnum g_io_error_from_errno (gint err_no); 48 | GIO_AVAILABLE_IN_2_74 49 | GIOErrorEnum g_io_error_from_file_error (GFileError file_error); 50 | 51 | #ifdef G_OS_WIN32 52 | GIO_AVAILABLE_IN_ALL 53 | GIOErrorEnum g_io_error_from_win32_error (gint error_code); 54 | #endif 55 | 56 | G_END_DECLS 57 | 58 | #endif /* __G_IO_ERROR_H__ */ 59 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsimpleiostream.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2014 NICE s.r.l. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General 17 | * Public License along with this library; if not, see . 18 | * 19 | * Authors: Ignacio Casal Quinteiro 20 | */ 21 | 22 | #ifndef __G_SIMPLE_IO_STREAM_H__ 23 | #define __G_SIMPLE_IO_STREAM_H__ 24 | 25 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 26 | #error "Only can be included directly." 27 | #endif 28 | 29 | #include 30 | #include 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define G_TYPE_SIMPLE_IO_STREAM (g_simple_io_stream_get_type ()) 35 | #define G_SIMPLE_IO_STREAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_SIMPLE_IO_STREAM, GSimpleIOStream)) 36 | #define G_IS_SIMPLE_IO_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SIMPLE_IO_STREAM)) 37 | 38 | GIO_AVAILABLE_IN_2_44 39 | GType g_simple_io_stream_get_type (void) G_GNUC_CONST; 40 | 41 | GIO_AVAILABLE_IN_2_44 42 | GIOStream *g_simple_io_stream_new (GInputStream *input_stream, 43 | GOutputStream *output_stream); 44 | 45 | G_END_DECLS 46 | 47 | #endif /* __G_SIMPLE_IO_STREAM_H__ */ 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gdbusmenumodel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Canonical Ltd. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #ifndef __G_DBUS_MENU_MODEL_H__ 23 | #define __G_DBUS_MENU_MODEL_H__ 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define G_TYPE_DBUS_MENU_MODEL (g_dbus_menu_model_get_type ()) 30 | #define G_DBUS_MENU_MODEL(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ 31 | G_TYPE_DBUS_MENU_MODEL, GDBusMenuModel)) 32 | #define G_IS_DBUS_MENU_MODEL(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ 33 | G_TYPE_DBUS_MENU_MODEL)) 34 | 35 | typedef struct _GDBusMenuModel GDBusMenuModel; 36 | 37 | GIO_AVAILABLE_IN_ALL 38 | GType g_dbus_menu_model_get_type (void) G_GNUC_CONST; 39 | 40 | GIO_AVAILABLE_IN_ALL 41 | GDBusMenuModel * g_dbus_menu_model_get (GDBusConnection *connection, 42 | const gchar *bus_name, 43 | const gchar *object_path); 44 | 45 | G_END_DECLS 46 | 47 | #endif /* __G_DBUS_MENU_MODEL_H__ */ 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gopenuriportal.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2017 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_OPEN_URI_PORTAL_H__ 22 | 23 | #include 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | gboolean g_openuri_portal_open_file (GFile *file, 29 | const char *parent_window, 30 | const char *startup_id, 31 | GError **error); 32 | 33 | void g_openuri_portal_open_file_async (GFile *file, 34 | const char *parent_window, 35 | const char *startup_id, 36 | GCancellable *cancellable, 37 | GAsyncReadyCallback callback, 38 | gpointer user_data); 39 | 40 | gboolean g_openuri_portal_open_file_finish (GAsyncResult *result, 41 | GError **error); 42 | 43 | G_END_DECLS 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsubprocesslauncher-private.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2012 Colin Walters 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_SUBPROCESS_CONTEXT_PRIVATE_H__ 22 | #define __G_SUBPROCESS_CONTEXT_PRIVATE_H__ 23 | 24 | #include "gsubprocesslauncher.h" 25 | 26 | G_BEGIN_DECLS 27 | 28 | struct _GSubprocessLauncher 29 | { 30 | GObject parent; 31 | 32 | GSubprocessFlags flags; 33 | char **envp; 34 | char *cwd; 35 | 36 | #ifdef G_OS_UNIX 37 | gint stdin_fd; 38 | gchar *stdin_path; 39 | 40 | gint stdout_fd; 41 | gchar *stdout_path; 42 | 43 | gint stderr_fd; 44 | gchar *stderr_path; 45 | 46 | GArray *source_fds; /* GSubprocessLauncher has ownership of the FD elements */ 47 | GArray *target_fds; /* always the same length as source_fds; elements are just integers and not FDs in this process */ 48 | gboolean closed_fd; 49 | 50 | GSpawnChildSetupFunc child_setup_func; 51 | gpointer child_setup_user_data; 52 | GDestroyNotify child_setup_destroy_notify; 53 | #endif 54 | }; 55 | 56 | void g_subprocess_set_launcher (GSubprocess *subprocess, 57 | GSubprocessLauncher *launcher); 58 | 59 | G_END_DECLS 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gactiongroupexporter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 Codethink Limited 3 | * Copyright © 2011 Canonical Limited 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Authors: Ryan Lortie 21 | */ 22 | 23 | 24 | #ifndef __G_ACTION_GROUP_EXPORTER_H__ 25 | #define __G_ACTION_GROUP_EXPORTER_H__ 26 | 27 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 28 | #error "Only can be included directly." 29 | #endif 30 | 31 | #include 32 | 33 | G_BEGIN_DECLS 34 | 35 | GIO_AVAILABLE_IN_2_32 36 | guint g_dbus_connection_export_action_group (GDBusConnection *connection, 37 | const gchar *object_path, 38 | GActionGroup *action_group, 39 | GError **error); 40 | 41 | GIO_AVAILABLE_IN_2_32 42 | void g_dbus_connection_unexport_action_group (GDBusConnection *connection, 43 | guint export_id); 44 | 45 | G_END_DECLS 46 | 47 | #endif /* __G_ACTION_GROUP_EXPORTER_H__ */ 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gdummyfile.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_DUMMY_FILE_H__ 24 | #define __G_DUMMY_FILE_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_DUMMY_FILE (_g_dummy_file_get_type ()) 31 | #define G_DUMMY_FILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DUMMY_FILE, GDummyFile)) 32 | #define G_DUMMY_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DUMMY_FILE, GDummyFileClass)) 33 | #define G_IS_DUMMY_FILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DUMMY_FILE)) 34 | #define G_IS_DUMMY_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DUMMY_FILE)) 35 | #define G_DUMMY_FILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DUMMY_FILE, GDummyFileClass)) 36 | 37 | typedef struct _GDummyFile GDummyFile; 38 | typedef struct _GDummyFileClass GDummyFileClass; 39 | 40 | struct _GDummyFileClass 41 | { 42 | GObjectClass parent_class; 43 | }; 44 | 45 | GType _g_dummy_file_get_type (void) G_GNUC_CONST; 46 | 47 | GFile * _g_dummy_file_new (const char *uri); 48 | 49 | G_END_DECLS 50 | 51 | #endif /* __G_DUMMY_FILE_H__ */ 52 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gdummytlsbackend.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2010 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_DUMMY_TLS_BACKEND_H__ 22 | #define __G_DUMMY_TLS_BACKEND_H__ 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define G_TYPE_DUMMY_TLS_BACKEND (_g_dummy_tls_backend_get_type ()) 29 | #define G_DUMMY_TLS_BACKEND(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DUMMY_TLS_BACKEND, GDummyTlsBackend)) 30 | #define G_DUMMY_TLS_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DUMMY_TLS_BACKEND, GDummyTlsBackendClass)) 31 | #define G_IS_DUMMY_TLS_BACKEND(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DUMMY_TLS_BACKEND)) 32 | #define G_IS_DUMMY_TLS_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DUMMY_TLS_BACKEND)) 33 | #define G_DUMMY_TLS_BACKEND_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DUMMY_TLS_BACKEND, GDummyTlsBackendClass)) 34 | 35 | typedef struct _GDummyTlsBackend GDummyTlsBackend; 36 | typedef struct _GDummyTlsBackendClass GDummyTlsBackendClass; 37 | 38 | struct _GDummyTlsBackendClass { 39 | GObjectClass parent_class; 40 | }; 41 | 42 | GType _g_dummy_tls_backend_get_type (void); 43 | 44 | G_END_DECLS 45 | 46 | #endif /* __G_DUMMY_TLS_BACKEND_H__ */ 47 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gshell.h: -------------------------------------------------------------------------------- 1 | /* gshell.h - Shell-related utilities 2 | * 3 | * Copyright 2000 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_SHELL_H__ 22 | #define __G_SHELL_H__ 23 | 24 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 25 | #error "Only can be included directly." 26 | #endif 27 | 28 | #include 29 | 30 | G_BEGIN_DECLS 31 | 32 | #define G_SHELL_ERROR g_shell_error_quark () 33 | 34 | typedef enum 35 | { 36 | /* mismatched or otherwise mangled quoting */ 37 | G_SHELL_ERROR_BAD_QUOTING, 38 | /* string to be parsed was empty */ 39 | G_SHELL_ERROR_EMPTY_STRING, 40 | G_SHELL_ERROR_FAILED 41 | } GShellError; 42 | 43 | GLIB_AVAILABLE_IN_ALL 44 | GQuark g_shell_error_quark (void); 45 | 46 | GLIB_AVAILABLE_IN_ALL 47 | gchar* g_shell_quote (const gchar *unquoted_string); 48 | GLIB_AVAILABLE_IN_ALL 49 | gchar* g_shell_unquote (const gchar *quoted_string, 50 | GError **error); 51 | GLIB_AVAILABLE_IN_ALL 52 | gboolean g_shell_parse_argv (const gchar *command_line, 53 | gint *argcp, 54 | gchar ***argvp, 55 | GError **error); 56 | 57 | G_END_DECLS 58 | 59 | #endif /* __G_SHELL_H__ */ 60 | -------------------------------------------------------------------------------- /src/example.zig: -------------------------------------------------------------------------------- 1 | const std = @import("std"); 2 | const c = @cImport({ 3 | @cInclude("SDL3/SDL.h"); 4 | }); 5 | 6 | pub fn main() void { 7 | // Initialize SDL 8 | if (!c.SDL_Init(c.SDL_INIT_VIDEO)) { 9 | std.debug.panic("{s}", .{c.SDL_GetError()}); 10 | } 11 | defer c.SDL_Quit(); 12 | 13 | std.debug.print("video driver: {s}\n", .{c.SDL_GetCurrentVideoDriver() orelse @as([*c]const u8, "null")}); 14 | 15 | // Create a window and renderer 16 | var window: ?*c.SDL_Window = null; 17 | var renderer: ?*c.SDL_Renderer = null; 18 | if (!c.SDL_CreateWindowAndRenderer( 19 | "example", 20 | 960, 21 | 540, 22 | c.SDL_WINDOW_RESIZABLE | c.SDL_WINDOW_HIGH_PIXEL_DENSITY, 23 | &window, 24 | &renderer, 25 | )) { 26 | std.debug.panic("{s}", .{c.SDL_GetError()}); 27 | } 28 | defer c.SDL_DestroyWindow(window); 29 | defer c.SDL_DestroyRenderer(renderer); 30 | 31 | // Main loop 32 | while (true) { 33 | // Poll events 34 | var event: c.SDL_Event = undefined; 35 | while (c.SDL_PollEvent(&event)) { 36 | if (event.type == c.SDL_EVENT_QUIT) { 37 | std.process.cleanExit(); 38 | return; 39 | } 40 | } 41 | 42 | // Update the background color 43 | const now = @as(f64, @floatFromInt(c.SDL_GetTicks())) / 1000.0; 44 | const r: f32 = @floatCast(0.5 + 0.5 * @sin(now)); 45 | const g: f32 = @floatCast(0.5 + 0.5 * @sin(now + std.math.pi * 2 / 3.0)); 46 | const b: f32 = @floatCast(0.5 + 0.5 * @sin(now + std.math.pi * 4 / 3.0)); 47 | 48 | if (!c.SDL_SetRenderDrawColorFloat(renderer, r, g, b, c.SDL_ALPHA_OPAQUE_FLOAT)) { 49 | std.debug.panic("{s}", .{c.SDL_GetError()}); 50 | } 51 | if (!c.SDL_RenderClear(renderer)) { 52 | std.debug.panic("{s}", .{c.SDL_GetError()}); 53 | } 54 | if (!c.SDL_RenderPresent(renderer)) { 55 | std.debug.panic("{s}", .{c.SDL_GetError()}); 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gcontextspecificgroup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2015 Canonical Limited 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #ifndef __G_CONTEXT_SPECIFIC_GROUP_H__ 23 | #define __G_CONTEXT_SPECIFIC_GROUP_H__ 24 | 25 | #include 26 | 27 | typedef struct 28 | { 29 | GHashTable *table; 30 | GMutex lock; 31 | GCond cond; 32 | gboolean requested_state; 33 | GCallback requested_func; 34 | gboolean effective_state; 35 | } GContextSpecificGroup; 36 | 37 | gpointer 38 | g_context_specific_group_get (GContextSpecificGroup *group, 39 | GType type, 40 | goffset context_offset, 41 | GCallback start_func); 42 | 43 | void 44 | g_context_specific_group_remove (GContextSpecificGroup *group, 45 | GMainContext *context, 46 | gpointer instance, 47 | GCallback stop_func); 48 | 49 | void 50 | g_context_specific_group_emit (GContextSpecificGroup *group, 51 | guint signal_id); 52 | 53 | #endif /* __G_CONTEXT_SPECIFIC_GROUP_H__ */ 54 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gprintfint.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | /* 21 | * Modified by the GLib Team and others 2002. See the AUTHORS 22 | * file for a list of people on the GLib Team. See the ChangeLog 23 | * files for a list of changes. These files are distributed with 24 | * GLib at ftp://ftp.gtk.org/pub/gtk/. 25 | */ 26 | 27 | #ifndef __G_PRINTFINT_H__ 28 | #define __G_PRINTFINT_H__ 29 | 30 | #ifdef USE_SYSTEM_PRINTF 31 | 32 | #define _g_printf printf 33 | #define _g_fprintf fprintf 34 | #define _g_sprintf sprintf 35 | #define _g_snprintf snprintf 36 | 37 | #define _g_vprintf vprintf 38 | #define _g_vfprintf vfprintf 39 | #define _g_vsprintf vsprintf 40 | #define _g_vsnprintf vsnprintf 41 | 42 | #else 43 | 44 | #include "gnulib/printf.h" 45 | 46 | #define _g_printf _g_gnulib_printf 47 | #define _g_fprintf _g_gnulib_fprintf 48 | #define _g_sprintf _g_gnulib_sprintf 49 | #define _g_snprintf _g_gnulib_snprintf 50 | 51 | #define _g_vprintf _g_gnulib_vprintf 52 | #define _g_vfprintf _g_gnulib_vfprintf 53 | #define _g_vsprintf _g_gnulib_vsprintf 54 | #define _g_vsnprintf _g_gnulib_vsnprintf 55 | 56 | #endif 57 | 58 | #endif /* __G_PRINTF_H__ */ 59 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gpollfilemonitor.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_POLL_FILE_MONITOR_H__ 24 | #define __G_POLL_FILE_MONITOR_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_POLL_FILE_MONITOR (_g_poll_file_monitor_get_type ()) 31 | #define G_POLL_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_POLL_FILE_MONITOR, GPollFileMonitor)) 32 | #define G_POLL_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), G_TYPE_POLL_FILE_MONITOR, GPollFileMonitorClass)) 33 | #define G_IS_POLL_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_POLL_FILE_MONITOR)) 34 | #define G_IS_POLL_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_POLL_FILE_MONITOR)) 35 | 36 | typedef struct _GPollFileMonitor GPollFileMonitor; 37 | typedef struct _GPollFileMonitorClass GPollFileMonitorClass; 38 | 39 | struct _GPollFileMonitorClass 40 | { 41 | GFileMonitorClass parent_class; 42 | }; 43 | 44 | GType _g_poll_file_monitor_get_type (void) G_GNUC_CONST; 45 | 46 | GFileMonitor * _g_poll_file_monitor_new (GFile *file); 47 | 48 | G_END_DECLS 49 | 50 | #endif /* __G_POLL_FILE_MONITOR_H__ */ 51 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gqsort.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | /* 21 | * Modified by the GLib Team and others 1997-2000. See the AUTHORS 22 | * file for a list of people on the GLib Team. See the ChangeLog 23 | * files for a list of changes. These files are distributed with 24 | * GLib at ftp://ftp.gtk.org/pub/gtk/. 25 | */ 26 | 27 | #ifndef __G_QSORT_H__ 28 | #define __G_QSORT_H__ 29 | 30 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 31 | #error "Only can be included directly." 32 | #endif 33 | 34 | #include 35 | 36 | G_BEGIN_DECLS 37 | 38 | GLIB_DEPRECATED_IN_2_82_FOR(g_sort_array) 39 | void g_qsort_with_data (gconstpointer pbase, 40 | gint total_elems, 41 | gsize size, 42 | GCompareDataFunc compare_func, 43 | gpointer user_data); 44 | 45 | GLIB_AVAILABLE_IN_2_82 46 | void g_sort_array (const void *array, 47 | size_t n_elements, 48 | size_t element_size, 49 | GCompareDataFunc compare_func, 50 | void *user_data); 51 | 52 | G_END_DECLS 53 | 54 | #endif /* __G_QSORT_H__ */ 55 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gappinfoprivate.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright © 2013 Canonical Limited 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Ryan Lortie 21 | */ 22 | 23 | #ifndef __G_APP_INFO_PRIVATE_H__ 24 | #define __G_APP_INFO_PRIVATE_H__ 25 | 26 | void g_app_info_monitor_fire (void); 27 | 28 | GAppInfo *g_app_info_create_from_commandline_impl (const char *commandline, 29 | const char *application_name, 30 | GAppInfoCreateFlags flags, 31 | GError **error); 32 | GList *g_app_info_get_recommended_for_type_impl (const gchar *content_type); 33 | GList *g_app_info_get_fallback_for_type_impl (const gchar *content_type); 34 | GList *g_app_info_get_all_for_type_impl (const char *content_type); 35 | void g_app_info_reset_type_associations_impl (const char *content_type); 36 | GAppInfo *g_app_info_get_default_for_type_impl (const char *content_type, 37 | gboolean must_support_uris); 38 | GAppInfo *g_app_info_get_default_for_uri_scheme_impl (const char *uri_scheme); 39 | GList *g_app_info_get_all_impl (void); 40 | 41 | #endif /* __G_APP_INFO_PRIVATE_H__ */ 42 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsocks5proxy.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2008, 2010 Collabora, Ltd. 4 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. 5 | * 6 | * SPDX-License-Identifier: LGPL-2.1-or-later 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General 19 | * Public License along with this library; if not, see . 20 | * 21 | * Author: Youness Alaoui 25 | */ 26 | 27 | #ifndef __G_SOCKS5_PROXY_H__ 28 | #define __G_SOCKS5_PROXY_H__ 29 | 30 | #include 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define G_TYPE_SOCKS5_PROXY (_g_socks5_proxy_get_type ()) 35 | #define G_SOCKS5_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SOCKS5_PROXY, GSocks5Proxy)) 36 | #define G_SOCKS5_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_SOCKS5_PROXY, GSocks5ProxyClass)) 37 | #define G_IS_SOCKS5_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SOCKS5_PROXY)) 38 | #define G_IS_SOCKS5_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SOCKS5_PROXY)) 39 | #define G_SOCKS5_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SOCKS5_PROXY, GSocks5ProxyClass)) 40 | 41 | typedef struct _GSocks5Proxy GSocks5Proxy; 42 | typedef struct _GSocks5ProxyClass GSocks5ProxyClass; 43 | 44 | GType _g_socks5_proxy_get_type (void); 45 | 46 | G_END_DECLS 47 | 48 | #endif /* __SOCKS5_PROXY_H__ */ 49 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gresourcefile.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2011 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_RESOURCE_FILE_H__ 24 | #define __G_RESOURCE_FILE_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_RESOURCE_FILE (_g_resource_file_get_type ()) 31 | #define G_RESOURCE_FILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_RESOURCE_FILE, GResourceFile)) 32 | #define G_RESOURCE_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_RESOURCE_FILE, GResourceFileClass)) 33 | #define G_IS_RESOURCE_FILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_RESOURCE_FILE)) 34 | #define G_IS_RESOURCE_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_RESOURCE_FILE)) 35 | #define G_RESOURCE_FILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_RESOURCE_FILE, GResourceFileClass)) 36 | 37 | typedef struct _GResourceFile GResourceFile; 38 | typedef struct _GResourceFileClass GResourceFileClass; 39 | 40 | struct _GResourceFileClass 41 | { 42 | GObjectClass parent_class; 43 | }; 44 | 45 | GType _g_resource_file_get_type (void) G_GNUC_CONST; 46 | 47 | GFile * _g_resource_file_new (const char *uri); 48 | 49 | G_END_DECLS 50 | 51 | #endif /* __G_RESOURCE_FILE_H__ */ 52 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gunionvolumemonitor.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | * David Zeuthen 22 | */ 23 | 24 | #ifndef __G_UNION_VOLUME_MONITOR_H__ 25 | #define __G_UNION_VOLUME_MONITOR_H__ 26 | 27 | #include 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define G_TYPE_UNION_VOLUME_MONITOR (_g_union_volume_monitor_get_type ()) 32 | #define G_UNION_VOLUME_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_UNION_VOLUME_MONITOR, GUnionVolumeMonitor)) 33 | #define G_UNION_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_UNION_VOLUME_MONITOR, GUnionVolumeMonitorClass)) 34 | #define G_IS_UNION_VOLUME_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_UNION_VOLUME_MONITOR)) 35 | #define G_IS_UNION_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_UNION_VOLUME_MONITOR)) 36 | 37 | typedef struct _GUnionVolumeMonitor GUnionVolumeMonitor; 38 | typedef struct _GUnionVolumeMonitorClass GUnionVolumeMonitorClass; 39 | 40 | struct _GUnionVolumeMonitorClass 41 | { 42 | GVolumeMonitorClass parent_class; 43 | }; 44 | 45 | GType _g_union_volume_monitor_get_type (void) G_GNUC_CONST; 46 | 47 | G_END_DECLS 48 | 49 | #endif /* __G_UNION_VOLUME_MONITOR_H__ */ 50 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gdir.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 | * 4 | * gdir.c: Simplified wrapper around the DIRENT functions. 5 | * 6 | * Copyright 2001 Hans Breuer 7 | * 8 | * SPDX-License-Identifier: LGPL-2.1-or-later 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Lesser General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2.1 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Lesser General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Lesser General Public 21 | * License along with this library; if not, see . 22 | */ 23 | 24 | #ifndef __G_DIR_H__ 25 | #define __G_DIR_H__ 26 | 27 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 28 | #error "Only can be included directly." 29 | #endif 30 | 31 | #include 32 | 33 | #ifdef G_OS_UNIX 34 | #include 35 | #endif 36 | 37 | G_BEGIN_DECLS 38 | 39 | typedef struct _GDir GDir; 40 | 41 | GLIB_AVAILABLE_IN_ALL 42 | GDir * g_dir_open (const gchar *path, 43 | guint flags, 44 | GError **error); 45 | GLIB_AVAILABLE_IN_ALL 46 | const gchar * g_dir_read_name (GDir *dir); 47 | GLIB_AVAILABLE_IN_ALL 48 | void g_dir_rewind (GDir *dir); 49 | GLIB_AVAILABLE_IN_ALL 50 | void g_dir_close (GDir *dir); 51 | 52 | GLIB_AVAILABLE_IN_2_80 53 | GDir * g_dir_ref (GDir *dir); 54 | GLIB_AVAILABLE_IN_2_80 55 | void g_dir_unref (GDir *dir); 56 | 57 | G_END_DECLS 58 | 59 | #endif /* __G_DIR_H__ */ 60 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsocks4aproxy.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2010 Collabora, Ltd. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Nicolas Dufresne 21 | */ 22 | 23 | #ifndef __G_SOCKS4A_PROXY_H__ 24 | #define __G_SOCKS4A_PROXY_H__ 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_SOCKS4A_PROXY (_g_socks4a_proxy_get_type ()) 31 | #define G_SOCKS4A_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SOCKS4A_PROXY, GSocks4aProxy)) 32 | #define G_SOCKS4A_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_SOCKS4A_PROXY, GSocks4aProxyClass)) 33 | #define G_IS_SOCKS4A_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SOCKS4A_PROXY)) 34 | #define G_IS_SOCKS4A_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SOCKS4A_PROXY)) 35 | #define G_SOCKS4A_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SOCKS4A_PROXY, GSocks4aProxyClass)) 36 | 37 | typedef struct _GSocks4aProxy GSocks4aProxy; 38 | typedef struct _GSocks4aProxyClass GSocks4aProxyClass; 39 | 40 | struct _GSocks4aProxy 41 | { 42 | GObject parent; 43 | gboolean supports_hostname; 44 | }; 45 | 46 | struct _GSocks4aProxyClass 47 | { 48 | GObjectClass parent_class; 49 | }; 50 | 51 | GType _g_socks4a_proxy_get_type (void); 52 | 53 | G_END_DECLS 54 | 55 | #endif /* __SOCKS5_PROXY_H__ */ 56 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gfileicon.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | * Author: Alexander Larsson 21 | */ 22 | 23 | #ifndef __G_FILE_ICON_H__ 24 | #define __G_FILE_ICON_H__ 25 | 26 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 27 | #error "Only can be included directly." 28 | #endif 29 | 30 | #include 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define G_TYPE_FILE_ICON (g_file_icon_get_type ()) 35 | #define G_FILE_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_ICON, GFileIcon)) 36 | #define G_FILE_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_ICON, GFileIconClass)) 37 | #define G_IS_FILE_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_ICON)) 38 | #define G_IS_FILE_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_ICON)) 39 | #define G_FILE_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_ICON, GFileIconClass)) 40 | 41 | typedef struct _GFileIconClass GFileIconClass; 42 | 43 | GIO_AVAILABLE_IN_ALL 44 | GType g_file_icon_get_type (void) G_GNUC_CONST; 45 | 46 | GIO_AVAILABLE_IN_ALL 47 | GIcon * g_file_icon_new (GFile *file); 48 | 49 | GIO_AVAILABLE_IN_ALL 50 | GFile * g_file_icon_get_file (GFileIcon *icon); 51 | 52 | G_END_DECLS 53 | 54 | #endif /* __G_FILE_ICON_H__ */ 55 | -------------------------------------------------------------------------------- /deps/alsa/include/alsa/asoundlib.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // asoundlib-head.h: 3 | //////////////////////////////////////////////////////////////////////////////////////////////////// 4 | 5 | #ifndef __ASOUNDLIB_H 6 | #define __ASOUNDLIB_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | //////////////////////////////////////////////////////////////////////////////////////////////////// 22 | // Manual recreation of the generated body 23 | //////////////////////////////////////////////////////////////////////////////////////////////////// 24 | 25 | // Replicate the logic from alsa's bound system with __has_include 26 | #if __has_include() 27 | #include 28 | #ifndef __BYTE_ORDER 29 | #define __BYTE_ORDER BYTE_ORDER 30 | #endif 31 | #ifndef __LITTLE_ENDIAN 32 | #define __LITTLE_ENDIAN LITTLE_ENDIAN 33 | #endif 34 | #ifndef __BIG_ENDIAN 35 | #define __BIG_ENDIAN BIG_ENDIAN 36 | #endif 37 | #else 38 | #include 39 | #endif 40 | 41 | #ifndef DOC_HIDDEN 42 | #ifndef __GNUC__ 43 | #define __inline__ inline 44 | #endif 45 | #endif /* DOC_HIDDEN */ 46 | 47 | // The official build then includes a few headers unconditionally. We've removed the ones that 48 | // aren't needed by SDL. 49 | #include 50 | #include 51 | #include 52 | #include 53 | #include 54 | 55 | // The build system then conditionally includes headers based on which features are enabled. SDL 56 | // currently only requires these two. 57 | #include 58 | #include 59 | 60 | //////////////////////////////////////////////////////////////////////////////////////////////////// 61 | // asoundlib-tail.h 62 | //////////////////////////////////////////////////////////////////////////////////////////////////// 63 | 64 | #endif /* __ASOUNDLIB_H */ 65 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gproxyresolverportal.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright 2016 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see 19 | * . 20 | */ 21 | 22 | #ifndef __G_PROXY_RESOLVER_PORTAL_H__ 23 | #define __G_PROXY_RESOLVER_PORTAL_H__ 24 | 25 | #include 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define G_TYPE_PROXY_RESOLVER_PORTAL (g_proxy_resolver_portal_get_type ()) 31 | #define G_PROXY_RESOLVER_PORTAL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_PROXY_RESOLVER_PORTAL, GProxyResolverPortal)) 32 | #define G_PROXY_RESOLVER_PORTAL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_PROXY_RESOLVER_PORTAL, GProxyResolverPortalClass)) 33 | #define G_IS_PROXY_RESOLVER_PORTAL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_PROXY_RESOLVER_PORTAL)) 34 | #define G_IS_PROXY_RESOLVER_PORTAL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_PROXY_RESOLVER_PORTAL)) 35 | #define G_PROXY_RESOLVER_PORTAL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_PROXY_RESOLVER_PORTAL, GProxyResolverPortalClass)) 36 | 37 | typedef struct _GProxyResolverPortal GProxyResolverPortal; 38 | typedef struct _GProxyResolverPortalClass GProxyResolverPortalClass; 39 | 40 | struct _GProxyResolverPortalClass { 41 | GObjectClass parent_class; 42 | }; 43 | 44 | GType g_proxy_resolver_portal_get_type (void); 45 | 46 | G_END_DECLS 47 | 48 | #endif /* __G_PROXY_RESOLVER_PORTAL_H__ */ 49 | -------------------------------------------------------------------------------- /deps/drm/include/xf86drmHash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 3 | * All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a 6 | * copy of this software and associated documentation files (the "Software"), 7 | * to deal in the Software without restriction, including without limitation 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | * and/or sell copies of the Software, and to permit persons to whom the 10 | * Software is furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice (including the next 13 | * paragraph) shall be included in all copies or substantial portions of the 14 | * Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 | * DEALINGS IN THE SOFTWARE. 23 | * 24 | * Authors: Rickard E. (Rik) Faith 25 | */ 26 | 27 | #define HASH_SIZE 512 /* Good for about 100 entries */ 28 | /* If you change this value, you probably 29 | have to change the HashHash hashing 30 | function! */ 31 | 32 | typedef struct HashBucket { 33 | unsigned long key; 34 | void *value; 35 | struct HashBucket *next; 36 | } HashBucket, *HashBucketPtr; 37 | 38 | typedef struct HashTable { 39 | unsigned long magic; 40 | unsigned long entries; 41 | unsigned long hits; /* At top of linked list */ 42 | unsigned long partials; /* Not at top of linked list */ 43 | unsigned long misses; /* Not in table */ 44 | HashBucketPtr buckets[HASH_SIZE]; 45 | int p0; 46 | HashBucketPtr p1; 47 | } HashTable, *HashTablePtr; 48 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gosxappinfo.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2014 Patrick Griffis 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | * 20 | */ 21 | 22 | #ifndef __G_OSX_APP_INFO_H__ 23 | #define __G_OSX_APP_INFO_H__ 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define G_TYPE_OSX_APP_INFO (g_osx_app_info_get_type ()) 30 | #define G_OSX_APP_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_OSX_APP_INFO, GOsxAppInfo)) 31 | #define G_OSX_APP_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_OSX_APP_INFO, GOsxAppInfoClass)) 32 | #define G_IS_OSX_APP_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_OSX_APP_INFO)) 33 | #define G_IS_OSX_APP_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_OSX_APP_INFO)) 34 | #define G_OSX_APP_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_OSX_APP_INFO, GOsxAppInfoClass)) 35 | 36 | typedef struct _GOsxAppInfo GOsxAppInfo; 37 | typedef struct _GOsxAppInfoClass GOsxAppInfoClass; 38 | 39 | struct _GOsxAppInfoClass 40 | { 41 | GObjectClass parent_class; 42 | }; 43 | 44 | GIO_AVAILABLE_IN_2_52 45 | GType g_osx_app_info_get_type (void) G_GNUC_CONST; 46 | 47 | GIO_AVAILABLE_IN_2_52 48 | const char *g_osx_app_info_get_filename (GOsxAppInfo *info); 49 | 50 | GIO_AVAILABLE_IN_2_52 51 | GList * g_osx_app_info_get_all_for_scheme (const gchar *scheme); 52 | 53 | G_END_DECLS 54 | 55 | 56 | #endif /* __G_OSX_APP_INFO_H__ */ 57 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gmenuexporter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Canonical Ltd. 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | * 19 | * Author: Ryan Lortie 20 | */ 21 | 22 | #ifndef __G_MENU_EXPORTER_H__ 23 | #define __G_MENU_EXPORTER_H__ 24 | 25 | #include 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | /** 31 | * G_MENU_EXPORTER_MAX_SECTION_SIZE: 32 | * 33 | * The maximum number of entries in a menu section supported by 34 | * g_dbus_connection_export_menu_model(). 35 | * 36 | * The exact value of the limit may change in future GLib versions. 37 | * 38 | * Since: 2.76 39 | */ 40 | #define G_MENU_EXPORTER_MAX_SECTION_SIZE 1000 \ 41 | GIO_AVAILABLE_MACRO_IN_2_76 42 | 43 | GIO_AVAILABLE_IN_2_32 44 | guint g_dbus_connection_export_menu_model (GDBusConnection *connection, 45 | const gchar *object_path, 46 | GMenuModel *menu, 47 | GError **error); 48 | 49 | GIO_AVAILABLE_IN_2_32 50 | void g_dbus_connection_unexport_menu_model (GDBusConnection *connection, 51 | guint export_id); 52 | 53 | G_END_DECLS 54 | 55 | #endif /* __G_MENU_EXPORTER_H__ */ 56 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/glib/gtrashstack.h: -------------------------------------------------------------------------------- 1 | /* GLIB - Library of useful routines for C programming 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, see . 18 | */ 19 | 20 | /* 21 | * Modified by the GLib Team and others 1997-2000. See the AUTHORS 22 | * file for a list of people on the GLib Team. See the ChangeLog 23 | * files for a list of changes. These files are distributed with 24 | * GLib at ftp://ftp.gtk.org/pub/gtk/. 25 | */ 26 | 27 | #ifndef __G_TRASH_STACK_H__ 28 | #define __G_TRASH_STACK_H__ 29 | 30 | #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) 31 | #error "Only can be included directly." 32 | #endif 33 | 34 | #include 35 | 36 | G_BEGIN_DECLS 37 | 38 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS 39 | 40 | typedef struct _GTrashStack GTrashStack GLIB_DEPRECATED_TYPE_IN_2_48; 41 | struct _GTrashStack 42 | { 43 | GTrashStack *next; 44 | } GLIB_DEPRECATED_TYPE_IN_2_48; 45 | 46 | GLIB_DEPRECATED_IN_2_48 47 | void g_trash_stack_push (GTrashStack **stack_p, 48 | gpointer data_p); 49 | GLIB_DEPRECATED_IN_2_48 50 | gpointer g_trash_stack_pop (GTrashStack **stack_p); 51 | GLIB_DEPRECATED_IN_2_48 52 | gpointer g_trash_stack_peek (GTrashStack **stack_p); 53 | GLIB_DEPRECATED_IN_2_48 54 | guint g_trash_stack_height (GTrashStack **stack_p); 55 | 56 | G_GNUC_END_IGNORE_DEPRECATIONS 57 | 58 | G_END_DECLS 59 | 60 | #endif /* __G_TRASH_STACK_H_ */ 61 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gtlsfiledatabase.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright © 2010 Collabora, Ltd. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * See the included COPYING file for more information. 13 | * 14 | * Author: Stef Walter 15 | */ 16 | 17 | #ifndef __G_TLS_FILE_DATABASE_H__ 18 | #define __G_TLS_FILE_DATABASE_H__ 19 | 20 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 21 | #error "Only can be included directly." 22 | #endif 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define G_TYPE_TLS_FILE_DATABASE (g_tls_file_database_get_type ()) 29 | #define G_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabase)) 30 | #define G_IS_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_FILE_DATABASE)) 31 | #define G_TLS_FILE_DATABASE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabaseInterface)) 32 | 33 | typedef struct _GTlsFileDatabaseInterface GTlsFileDatabaseInterface; 34 | 35 | /** 36 | * GTlsFileDatabaseInterface: 37 | * @g_iface: The parent interface. 38 | * 39 | * Provides an interface for #GTlsFileDatabase implementations. 40 | * 41 | */ 42 | struct _GTlsFileDatabaseInterface 43 | { 44 | GTypeInterface g_iface; 45 | 46 | /*< private >*/ 47 | /* Padding for future expansion */ 48 | gpointer padding[8]; 49 | }; 50 | 51 | GIO_AVAILABLE_IN_ALL 52 | GType g_tls_file_database_get_type (void) G_GNUC_CONST; 53 | 54 | GIO_AVAILABLE_IN_ALL 55 | GTlsDatabase* g_tls_file_database_new (const gchar *anchors, 56 | GError **error); 57 | 58 | G_END_DECLS 59 | 60 | #endif /* __G_TLS_FILE_DATABASE_H___ */ 61 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gwin32appinfo.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2006-2007 Red Hat, Inc. 4 | * Copyright (C) 2014 Руслан Ижбулатов 5 | * 6 | * SPDX-License-Identifier: LGPL-2.1-or-later 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General 19 | * Public License along with this library; if not, see . 20 | * 21 | * Authors: Alexander Larsson 22 | * Руслан Ижбулатов 23 | */ 24 | 25 | #ifndef __G_WIN32_APP_INFO_H__ 26 | #define __G_WIN32_APP_INFO_H__ 27 | 28 | #include 29 | 30 | G_BEGIN_DECLS 31 | 32 | #define G_TYPE_WIN32_APP_INFO (g_win32_app_info_get_type ()) 33 | #define G_WIN32_APP_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_WIN32_APP_INFO, GWin32AppInfo)) 34 | #define G_WIN32_APP_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_WIN32_APP_INFO, GWin32AppInfoClass)) 35 | #define G_IS_WIN32_APP_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_WIN32_APP_INFO)) 36 | #define G_IS_WIN32_APP_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_WIN32_APP_INFO)) 37 | #define G_WIN32_APP_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_WIN32_APP_INFO, GWin32AppInfoClass)) 38 | 39 | typedef struct _GWin32AppInfo GWin32AppInfo; 40 | typedef struct _GWin32AppInfoClass GWin32AppInfoClass; 41 | 42 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GWin32AppInfo, g_object_unref) 43 | 44 | struct _GWin32AppInfoClass 45 | { 46 | GObjectClass parent_class; 47 | }; 48 | 49 | GType g_win32_app_info_get_type (void) G_GNUC_CONST; 50 | 51 | G_END_DECLS 52 | 53 | 54 | #endif /* __G_WIN32_APP_INFO_H__ */ 55 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gsrvtarget.h: -------------------------------------------------------------------------------- 1 | /* GIO - GLib Input, Output and Streaming Library 2 | * 3 | * Copyright (C) 2008 Red Hat, Inc. 4 | * 5 | * SPDX-License-Identifier: LGPL-2.1-or-later 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General 18 | * Public License along with this library; if not, see . 19 | */ 20 | 21 | #ifndef __G_SRV_TARGET_H__ 22 | #define __G_SRV_TARGET_H__ 23 | 24 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 25 | #error "Only can be included directly." 26 | #endif 27 | 28 | #include 29 | 30 | G_BEGIN_DECLS 31 | 32 | GIO_AVAILABLE_IN_ALL 33 | GType g_srv_target_get_type (void) G_GNUC_CONST; 34 | #define G_TYPE_SRV_TARGET (g_srv_target_get_type ()) 35 | 36 | GIO_AVAILABLE_IN_ALL 37 | GSrvTarget *g_srv_target_new (const gchar *hostname, 38 | guint16 port, 39 | guint16 priority, 40 | guint16 weight); 41 | GIO_AVAILABLE_IN_ALL 42 | GSrvTarget *g_srv_target_copy (GSrvTarget *target); 43 | GIO_AVAILABLE_IN_ALL 44 | void g_srv_target_free (GSrvTarget *target); 45 | 46 | GIO_AVAILABLE_IN_ALL 47 | const gchar *g_srv_target_get_hostname (GSrvTarget *target); 48 | GIO_AVAILABLE_IN_ALL 49 | guint16 g_srv_target_get_port (GSrvTarget *target); 50 | GIO_AVAILABLE_IN_ALL 51 | guint16 g_srv_target_get_priority (GSrvTarget *target); 52 | GIO_AVAILABLE_IN_ALL 53 | guint16 g_srv_target_get_weight (GSrvTarget *target); 54 | 55 | GIO_AVAILABLE_IN_ALL 56 | GList *g_srv_target_list_sort (GList *targets); 57 | 58 | G_END_DECLS 59 | 60 | #endif /* __G_SRV_TARGET_H__ */ 61 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/gpropertyaction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2013 Canonical Limited 3 | * 4 | * SPDX-License-Identifier: LGPL-2.1-or-later 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General 17 | * Public License along with this library; if not, see . 18 | * 19 | * Authors: Ryan Lortie 20 | */ 21 | 22 | #ifndef __G_PROPERTY_ACTION_H__ 23 | #define __G_PROPERTY_ACTION_H__ 24 | 25 | #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) 26 | #error "Only can be included directly." 27 | #endif 28 | 29 | #include 30 | 31 | G_BEGIN_DECLS 32 | 33 | #define G_TYPE_PROPERTY_ACTION (g_property_action_get_type ()) 34 | #define G_PROPERTY_ACTION(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ 35 | G_TYPE_PROPERTY_ACTION, GPropertyAction)) 36 | #define G_IS_PROPERTY_ACTION(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ 37 | G_TYPE_PROPERTY_ACTION)) 38 | 39 | GIO_AVAILABLE_IN_2_38 40 | GType g_property_action_get_type (void) G_GNUC_CONST; 41 | 42 | GIO_AVAILABLE_IN_2_38 43 | GPropertyAction * g_property_action_new (const gchar *name, 44 | gpointer object, 45 | const gchar *property_name); 46 | 47 | G_END_DECLS 48 | 49 | #endif /* __G_PROPERTY_ACTION_H__ */ 50 | -------------------------------------------------------------------------------- /deps/glib/upstream/include/gio/xdgmime/xdgmimeglob.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C; c-file-style: "gnu" -*- */ 2 | /* xdgmimeglob.h: Private file. Datastructure for storing the globs. 3 | * 4 | * More info can be found at http://www.freedesktop.org/standards/ 5 | * 6 | * Copyright (C) 2003 Red Hat, Inc. 7 | * Copyright (C) 2003 Jonathan Blandford 8 | * 9 | * SPDX-License-Identifier: LGPL-2.1-or-later or AFL-2.0 10 | */ 11 | 12 | #ifndef __XDG_MIME_GLOB_H__ 13 | #define __XDG_MIME_GLOB_H__ 14 | 15 | #include "xdgmime.h" 16 | 17 | typedef struct XdgGlobHash XdgGlobHash; 18 | 19 | typedef enum 20 | { 21 | XDG_GLOB_LITERAL, /* Makefile */ 22 | XDG_GLOB_SIMPLE, /* *.gif */ 23 | XDG_GLOB_FULL /* x*.[ch] */ 24 | } XdgGlobType; 25 | 26 | 27 | #ifdef XDG_PREFIX 28 | #define _xdg_mime_glob_read_from_file XDG_RESERVED_ENTRY(glob_read_from_file) 29 | #define _xdg_glob_hash_new XDG_RESERVED_ENTRY(hash_new) 30 | #define _xdg_glob_hash_free XDG_RESERVED_ENTRY(hash_free) 31 | #define _xdg_glob_hash_lookup_file_name XDG_RESERVED_ENTRY(hash_lookup_file_name) 32 | #define _xdg_glob_hash_append_glob XDG_RESERVED_ENTRY(hash_append_glob) 33 | #define _xdg_glob_determine_type XDG_RESERVED_ENTRY(determine_type) 34 | #define _xdg_glob_hash_dump XDG_RESERVED_ENTRY(hash_dump) 35 | #endif 36 | 37 | void _xdg_mime_glob_read_from_file (XdgGlobHash *glob_hash, 38 | const char *file_name, 39 | int version_two); 40 | XdgGlobHash *_xdg_glob_hash_new (void); 41 | void _xdg_glob_hash_free (XdgGlobHash *glob_hash); 42 | int _xdg_glob_hash_lookup_file_name (XdgGlobHash *glob_hash, 43 | const char *text, 44 | const char *mime_types[], 45 | int n_mime_types); 46 | void _xdg_glob_hash_append_glob (XdgGlobHash *glob_hash, 47 | const char *glob, 48 | const char *mime_type, 49 | int weight, 50 | int case_sensitive); 51 | XdgGlobType _xdg_glob_determine_type (const char *glob); 52 | void _xdg_glob_hash_dump (XdgGlobHash *glob_hash); 53 | 54 | #endif /* __XDG_MIME_GLOB_H__ */ 55 | --------------------------------------------------------------------------------