From patchwork Sun Sep 29 09:55:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2439 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 46h1BS6ndwz42Rr for ; Sun, 29 Sep 2019 09:56:00 +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 46h1BS4vsCz36f; Sun, 29 Sep 2019 09:56:00 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46h1BS3g58z2yr5; Sun, 29 Sep 2019 09:56:00 +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 46h1BR1tjjz2yCb; Sun, 29 Sep 2019 09:55:59 +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 46h1BQ4tXdz2fF; Sun, 29 Sep 2019 09:55:58 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1569750959; 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=tXjCdWskepjKgdv1SPkiNZTQM2GsKAQBb5iq6hfvWvc=; b=aWBSaMhx510KcpgOmPjqHJjZx50EXFXTt6TC5tdYHf/FALxIUpvpV3W0zcYA59izAONMvc S30A/y9qABQdJDBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1569750959; 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=tXjCdWskepjKgdv1SPkiNZTQM2GsKAQBb5iq6hfvWvc=; b=ca0S3y2vDZnh3bfTr+eAo1PBlq3Ffo6QAWcXofEIr/TGiWXaH0w5MBHgO6UNGSC4t8ZhY9 ztwBEtgLbM5GrL1p3p9m7U2ygFUhzMiQO/uOU8rZjh2JgP0T0qirG+xsvWd0CYo28OdCK3 Yp6ln3XQA2bkOxPIxbabf9lnAJuUiULZd9ju7xMbkYVmiyUhLnZK6CS2vcmYifvJkNWKKs 1siWDT48Hem2+52Un8/rAofl9o4K5+ROOPF/BIHqK3EjBBlx0u7iMCkSHJLWs31w4kHFmL dXyUkEhQw/6u2+sVJ+8NXPPrQRTGLS3J39yZPhXTJom99moD3eMyp4eJkPX+Lg== From: Stefan Schantl To: development@lists.ipfire.org, location@lists.ipfire.org Subject: [PATCH] perl: Add function to gather the license of a database. Date: Sun, 29 Sep 2019 11:55:56 +0200 Message-Id: <20190929095556.10745-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: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 496fc43..ab27f0b 100644 --- a/src/perl/Location/Location.xs +++ b/src/perl/Location/Location.xs @@ -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 #