summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-enumtypes.c.template
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* Drop use of `volatile`Jonathan Lebon2020-11-021-4/+4
| | | | | | | | | | | | | | As detailed in gitlab.gnome.org/GNOME/glib/-/issues/600#note_877282, volatile isn't actually needed in these contexts because the atomic operations already give us strong enough guarantees. In GCC 11, this triggers a diagnostic due to the volatile qualifier getting dropped anyway. There is a WIP to do the same in glib: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719 This obsoletes this downstream patch: https://src.fedoraproject.org/rpms/ostree/c/b8c5a6fb
* build: Add -Werror=undef by default, fix falloutColin Walters2017-11-061-3/+1
| | | | | | | | | | | | | The main thing here is that a ton of stuff has happened in gnulib since we imported `parse-datetime.y`. I cherry-picked a little bit of it, but that upstream doesn't seem to build with `-Wundef`, so I just deleted some hunks. (Note I reindented the warnings consistently) Update submodule: libglnx Closes: #1320 Approved by: jlebon
* Move the include directive to the enum templateEmmanuele Bassi2017-07-171-0/+2
| | | | | | | | | | | There is no actual written guarantee in glib-mkenums that the template line specified using --fhead will be added after the templates specified inside the template file. Since the template file is only used once, we can simply move the `#include` directive inside the template, so that it is guaranteed to be in the right place. Closes: #1007 Approved by: cgwalters
* lib: Ensure we use _GNU_SOURCE in enum templatesColin Walters2016-12-071-0/+6
| | | | | | | | | | | | | Due to the way glib-mkenums runs the preprocessor itself, it doesn't pick up the `AC_USE_SYSTEM_EXTENSIONS()` that we have in `configure.ac`. This blew up in an obscure way when I later wanted to `#include "libglnx.h"` in one of the headers, since it needs the `basename()` from `string.h` which is only available with `_GNU_SOURCE`. Closes: #616 Approved by: jlebon
* Make enum generation private by default, export stub symbolColin Walters2016-05-121-1/+1
| | | | | | | | | | | | | | | | | When we added enum type generation, the generated symbols used the `ostree_` prefix, and at the time that implied they were public. So we started (if built with libsoup) exporting `ostree_fetcher_config_flags_get_type`. I think it's not worth confusing ABI checkers, so let's export the dummy symbol forever, and switch enums to be private by default. We should revisit this and also export some auto-generated enum types for public enums, but that's a separate patch. Closes: #296 Approved by: gatispaeglis
* fetcher: Add "config-flags" construct-only propertyMatthew Barnes2015-12-141-0/+60
A lot of effort here just to avoid touching SoupSession directly in ostree_fetcher_new(). The reason will become apparent in subsequent commits. Note this introduces generated enum/flags GTypes using glib-mkenums. I could have just made the property type as plain integer, but doing properties right will henceforth be easier now that the automake-fu is established.