| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current include files use the pattern
#ifndef __OOSINFO_BLAH_H__
# define __OOSINFO_BLAH_H__
#endif /* __OOSINFO_BLAH_H__ */
Since we already mandated GCC + CLang, we can replace this with a
simpler incantation
#pragma once
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
| |
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
| |
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
| |
Authors are not often updated and do not reflect the current state of
the code.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Let's create an OsinfoError enum instead of just using 0 as the error
type. This solves the following instrospection warning:
```
<unknown>:: Warning: Libosinfo: (ErrorQuarkFunction)error_quark: osinfo_error_quark: Couldn't find corresponding enumeration
```
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
|
| |
By doing this, we can stop excluding files from
sc_preprocessor_indentation check.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
|
|
|
|
|
| |
No other virt projects have annotations like this, plus IMO
.editorconfig handles this in a much nicer way and more flexible
way. Ditch them
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since glib commit 2.31.10~16 [1], g_set_error() will issue a warning if
it's passed a NULL domain. libosinfo is doing this in a few places (try
for example 'osinfo-query os winxp'). This commit adds a generic OSINFO_ERROR
domain which will be used instead of NULL. It's a bit inconsistent with
OSINFO_MEDIA_ERROR and OSINFO_TREE_ERROR in that they both start with
"osinfo-*" while OSINFO_ERROR uses "libosinfo". However, since
OsinfoLoader already makes use of that quark, changing that would
arguably be an (very small) ABI break.
[1] https://gitlab.gnome.org/GNOME/glib/commit/6d9f874330
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
| |
The FSF moved a while ago which made the address we use in every
source file header invalid. Follow the recommendation from
http://www.gnu.org/licenses/gpl-howto.html and don't put any address
in these headers, just a link to the fsf website.
|
|
|
|
|
|
|
| |
Each public visible struct and enum must have documented
items. If it hasn't, gtk-doc produces a lot of warnings.
However, things it's complaining about doesn't have any
interesting attributes, so mark them as private.
|
|
|
|
|
|
|
|
|
| |
In addition to loading the system files from /usr/share/libosinfo/db,
it will now also load files in /etc/libosinfo/db/ (if it exists) and
$HOME/.local/config/libosinfo/db/ (if it exists)
New APIs are also added to allow an application to load a subset
of these locations, if they don't like the default behaviour
|
| |
|
| |
|
|
|
|
|
| |
Add a method that enables applications to load the metadata osinfo
provides without having to specify any paths.
|
|
|
|
|
|
|
|
|
|
|
| |
Add GTK-DOC api docs for all public methods, signals, objects,
enums, etc. Include annotations required for GObject Introspection
to get reference counting / memory allocation correct when doing
automatic language binding generation
* osinfo/*.c: Add API docs for all methods / signals / objects / enums
* osinfo/*.h: Ensure parameter names match those in the corresponding
.c file implementation to avoid confusing gtk-doc
|
|
|
|
|
|
|
|
| |
Fix some files where tabs have crept in for indentation and
add emacs magic to ensure they don't return.
* osinfo/*.h, osinfo/*.c, tests/*c: Add footer setting emacs
indentation rules. Re-indent to comply.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Direct use of POSIX/stdc I/O is deprecated in favour of
the GIO system. Re-write the OsinfoLoader to use GIO
for loading XML from arbitrary paths/uris.
* configure.ac: Check for GIO library
* osinfo/Makefile.am: Link to GIO
* osinfo/osinfo_loader.c, osinfo/osinfo_loader.h: Port
to GIO
* test/osinfo.suppression: Supress many GIO data types
* test/test-loader.c: update for new GIO api.
|
|
Instead of having a method on the OsinfoDb class
for loading XML, introduce a new object that can
handle XML loading. This then gives back a DB when
loading is finished
* osinfo/osinfo_db.c, osinfo/osinfo_db.h: Remove
backing-store property and xml loader methods
* osinfo/osinfo_loader.c, osinfo/osinfo_loader.h: New class
for loading XML files
* osinfo/osinfo_dataread.c: Delete old loader
* osinfo/libosinfo.syms, osinfo/osinfo.h,
osinfo/Makefile.am: New loader class
* test/Makefile.am, test/osinfo.suppression,
test/test-db.c, test/test-loader.c: Update to
use new loader class
|