]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
perl: Add function to gather the license of a database.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 29 Sep 2019 09:55:56 +0000 (11:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Sep 2019 11:51:35 +0000 (11:51 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/perl/Location/Location.xs

index 496fc43e100282fd05f09d003eb922664be02d8a..ab27f0bf31866862cb0d3c54ae55896e5cc956e1 100644 (file)
@@ -79,6 +79,16 @@ get_description(db)
        OUTPUT:
                RETVAL
 
+const char*
+get_license(db)
+       struct loc_database* db;
+
+       CODE:
+               // Get database license
+               RETVAL = loc_database_get_license(db);
+       OUTPUT:
+               RETVAL
+
 #
 # Lookup functions
 #