From e1b85a2f540fc7887ad37b14e565b591679a31b6 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Wed, 20 Feb 2013 12:58:21 +0100
Subject: [PATCH] lib/ppsi-wrappers.c: more code from ptp-noposix

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
 lib/ppsi-wrappers.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/ppsi-wrappers.c b/lib/ppsi-wrappers.c
index dbf7d2fc0..f59b8fa60 100644
--- a/lib/ppsi-wrappers.c
+++ b/lib/ppsi-wrappers.c
@@ -4,6 +4,7 @@
 #include <syscon.h>
 #include <endpoint.h>
 #include <softpll_ng.h>
+#include <ptpd_netif.h>
 
 /* Following code from ptp-noposix/libposix/freestanding-wrapper.c */
 
@@ -60,3 +61,9 @@ int halexp_get_port_state(hexp_port_state_t *state, const char *port_name)
   return 0;
 }
 
+int ptpd_netif_get_dmtd_phase(wr_socket_t *sock, int32_t *phase)
+{
+        if(phase)
+                return spll_read_ptracker(0, phase, NULL);
+        return 0;
+}
-- 
GitLab