From patchwork Sun Sep 29 09:55:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2436 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46h19m3z7Xz42Rr for ; Sun, 29 Sep 2019 09:55:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46h19m3JZ9z2pW; Sun, 29 Sep 2019 09:55:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46h19m2L4Vz2ydl; Sun, 29 Sep 2019 09:55:24 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46h19k4RpSz2xqJ; Sun, 29 Sep 2019 09:55:22 +0000 (UTC) Received: from tuxedo.stevee (213162073174.public.t-mobile.at [213.162.73.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46h19k1jy9z2KX; Sun, 29 Sep 2019 09:55:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1569750922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GEN2pnDlGWF3vOvEDtBjeuM0ZiH3TGusLEKFkSNcZsg=; b=Lisdgk5enupjmfgt3SM0dS+ysYZYtZnUxEX2PMl2viGyS3ACq2QU0BRNCVvv7X6TgOKZYB jJdZEfT2Ur2HwZ6Hoe0wVHlrPXm2dRichB3VLQE+IBylnsdM6Q/1ycNBeiUvZ6JZJT2N0L ONtjCrjvZ86h/djXfy7NTrkZ3wwzv9JGStnO+QTYRsaI8CgXXPRpLyntT+gQ/DWx8rmmZC 8FM65AasoMM80nGL0M7B33SaHfEpI97M6+f9B8eexdJdOJRQi5lkPBdtBsSfpUSu4kmBgR vmECn+sOFHfBCaoOvSaSoq3LQuZGf8TTCV51RKln9jp3Sku/Y0DaATaDR8nOpQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1569750922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GEN2pnDlGWF3vOvEDtBjeuM0ZiH3TGusLEKFkSNcZsg=; b=5bxtTCX5qcbdD8vYdaNiDneP+y/P+ifGjgRYWUE7oiEREpqdzeCPkjt1SGkYvPdVNalaS0 mOliOml5Z7UaYDCQ== From: Stefan Schantl To: development@lists.ipfire.org, location@lists.ipfire.org Subject: [PATCH] perl: Add function to get the description of the database. Date: Sun, 29 Sep 2019 11:55:12 +0200 Message-Id: <20190929095512.10655-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Signed-off-by: Stefan Schantl --- src/perl/Location/Location.xs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 #