| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This allows it to be used in the GObject introspection
|
|
|
|
|
| |
Fixes some missing symbols that are supported by Vala but not by the
GObject introspection yet.
|
|
|
|
|
|
|
| |
The pkg-config is only declaring the rest-1.0 directory so we always need to use
rest/rest-foo.h and not rest-foo.h
Also make sure to include all the headers.
|
|
|
|
|
|
| |
The parameters are not optional as they are always accessed. They can be NULL
when the iter is finished, actually always set it so that we are sure to
always have an initialized variable
|
|
|
|
| |
Allows bindings to use the single header
|
|
|
|
|
|
|
| |
OAuth1 is discouraged to be used nowadays. Only flickr is the only
service we used in the past which needed oauth1. They probably
won't update their API to OAuth2 and therefore it was dropped
in GOA. Following this example, dropping OAuth1 support too for librest.
|
| |
|
|
|
|
|
|
|
|
| |
Meson allows projects to specify the dependency object when used as
subprojects; this avoids having to know the variable name to import into
the superproject.
See: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_dependency
|
|
|
|
| |
This fixes problems with bindings if they want to free resources
|
| |
|
| |
|
| |
|
|
|
|
| |
../rest/rest-params.c:224: Warning: Rest: rest_params_as_string_hash_table: unknown parameter 'self' in documentation comment, should be 'params'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
../rest/rest-oauth2-proxy.c: In function ‘rest_oauth2_proxy_build_authorization_url’:
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: warning: ‘params_string’ may be used uninitialized [-Wmaybe-uninitialized]
28 | g_free (*pp);
| ^~~~~~~~~~~~
../rest/rest-oauth2-proxy.c:355:21: note: ‘params_string’ was declared here
355 | g_autofree gchar *params_string;
| ^~~~~~~~~~~~~
../rest/rest-oauth2-proxy.c: In function ‘rest_oauth2_proxy_new_call’:
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: warning: ‘auth’ may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | g_free (*pp);
| ^~~~~~~~~~~~
../rest/rest-oauth2-proxy.c:114:21: note: ‘auth’ was declared here
114 | g_autofree gchar *auth;
| ^~~~
|
|
|
|
|
| |
Currently it has not practical use. I will rethink how to implement
this in nicer way in order to make one-request basic auths possible.
|
| |
|
| |
|
|
|
|
|
| |
Also protect against misconfiguration of introspection and vapi as
introspection is needed for vapi generation
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
RestParams was implemented as HashTable. Limitations are that it did
not preserved the order of individual parameters aswell as duplicates
aren't allowed. Reworked it to a GList and introduced reference counting
and a boxed type.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Instead use public API of OAuthProxy
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Due to the change to soup3 we save the payload now as GBytes.
The trailing '\0' is not part of that and therefore one has
to create a full string afterwards.
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See the [Meson website] for a full reference. To build, test and/or
install the librest library, you essentially need the following commands:
```
$ meson build
$ ninja -C build
$ meson test -C build
$ ninja -C build install
```
For the GNOME initiative, see
https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
[Meson website]: http://mesonbuild.com/
https://gitlab.gnome.org/GNOME/librest/merge_requests/1
|
|
|
|
| |
Most of them are taken from the Vala overrides: https://gitlab.gnome.org/GNOME/vala/-/blob/master/vapi/metadata/Rest-0.7.metadata
|
|
|
|
|
|
|
|
|
| |
Calling rest_xml_parser_parse_from_data() with an empty string ("")
currently causes a crash as xmlReaderForMemory() returns NULL in that
case, and we then try to dereference this pointer without checking it's
non-NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=789053
|
|
|
|
|
| |
This is already done in finish_call and the g_strdup to
priv->status_message was leaking the previously set one.
|
|
|
|
|
| |
Before this, it was impossible to get the server payload from a proxy
call invoked via rest_proxy_call_upload.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The order in which GHashTable returns its key-value pairs is undefined.
Therefore the output of rest_xml_node_print can change based on the
GHashTable implementation. While not strictly necessary, it would be
nice to avoid that. Having a stable order, even if it is not
documented and depends on the current RestXmlNode code, is handy for
testing.
This was the main reason behind the tests/xml.c breakage.
https://bugzilla.gnome.org/show_bug.cgi?id=788960
|
|
|
|
|
|
|
|
|
|
| |
The rest_xml_node_add_child API explicitly documents NULL parents as
the way to create top-level nodes. This had broken the second half of
tests/xml.c.
Fallout from b11a1664cd4dfcc62b07b4a68adc220fd1eb8305
https://bugzilla.gnome.org/show_bug.cgi?id=788960
|
|
|
|
|
|
|
|
| |
This had broken tests/xml.c.
Fallout from 61a7b231bd8b9d1b8d02dca120389e79d38b428d
https://bugzilla.gnome.org/show_bug.cgi?id=788960
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785818
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785818
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785811
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785811
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785811
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785811
|
|
|
|
|
|
| |
Bump minimum GLib version to 2.44.0.
https://bugzilla.gnome.org/show_bug.cgi?id=785811
|
| |
|
| |
|
|
|
|
|
|
|
| |
Currently rest_proxy_call_sync (and everything else using
prepare_message) might return FALSE without setting @error at all. Add
two new error codes to indicate the possible problems and reliably
set the error if something went wrong.
|