perl: Add function to get the description of the database.

Message ID 20190929095512.10655-1-stefan.schantl@ipfire.org
State Accepted
Commit 973c5f03e64d71ce74c4d007e65c17985e3c8974
Headers
Series perl: Add function to get the description of the database. |

Commit Message

Stefan Schantl Sept. 29, 2019, 9:55 a.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 src/perl/Location/Location.xs | 10 ++++++++++
 1 file changed, 10 insertions(+)
  

Patch

diff --git a/src/perl/Location/Location.xs b/src/perl/Location/Location.xs
index f94ca31..496fc43 100644
--- a/src/perl/Location/Location.xs
+++ b/src/perl/Location/Location.xs
@@ -69,6 +69,16 @@  get_vendor(db)
 	OUTPUT:
 		RETVAL
 
+const char*
+get_description(db)
+	struct loc_database* db;
+
+	CODE:
+		// Get database description
+		RETVAL = loc_database_get_description(db);
+	OUTPUT:
+		RETVAL
+
 #
 # Lookup functions
 #