From d66af1e34765c7d82963af1bc75fdb2446917432 Mon Sep 17 00:00:00 2001
From: Herman van Rink <rink@initfour.nl>
Date: Thu, 2 Sep 2021 13:21:40 +0200
Subject: [PATCH] Add api functions for DNS type LOC, #6224

These were already listed in interface/web/dns/lib/remote.conf.php
---
 interface/lib/classes/remote.d/dns.inc.php | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/interface/lib/classes/remote.d/dns.inc.php b/interface/lib/classes/remote.d/dns.inc.php
index 15f47db874..b5d4b3820c 100644
--- a/interface/lib/classes/remote.d/dns.inc.php
+++ b/interface/lib/classes/remote.d/dns.inc.php
@@ -513,6 +513,29 @@ class remoting_dns extends remoting {
 		return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'HINFO');
 	}
 
+
+	// ----------------------------------------------------------------------------------------------------------------
+
+	//* Get record details
+	public function dns_loc_get($session_id, $primary_id) {
+		return $this->dns_rr_get($session_id, $primary_id, 'LOC');
+	}
+
+	//* Add a record
+	public function dns_loc_add($session_id, $client_id, $params, $update_serial=false) {
+		return $this->dns_rr_add($session_id, $client_id, $params, $update_serial, 'LOC');
+	}
+
+	//* Update a record
+	public function dns_loc_update($session_id, $client_id, $primary_id, $params, $update_serial=false) {
+		return $this->dns_rr_update($session_id, $client_id, $primary_id, $params, $update_serial, 'LOC');
+	}
+
+	//* Delete a record
+	public function dns_loc_delete($session_id, $primary_id, $update_serial=false) {
+		return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'LOC');
+	}
+
 	// ----------------------------------------------------------------------------------------------------------------
 
 	//* Get record details
-- 
GitLab