]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
Don't need a C++ header file just yet.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 18 Mar 2021 18:24:19 +0000 (18:24 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 18 Mar 2021 18:24:19 +0000 (18:24 +0000)
nqptp-shm-structures.hpp [deleted file]

diff --git a/nqptp-shm-structures.hpp b/nqptp-shm-structures.hpp
deleted file mode 100644 (file)
index 777196b..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef __NQPTP_SHM_STRUCTURES_H
-#define __NQPTP_SHM_STRUCTURES_H
-
-#define MAX_SHARED_CLOCKS 8
-#define NQPTP_SHM_STRUCTURES_VERSION 1
-
-#include <inttypes.h>
-#include <netinet/in.h>
-#include <pthread.h>
-
-struct __attribute__((__packed__)) clock_source {
-    char ip[INET6_ADDRSTRLEN]; // where it's coming from
-    int flags;                 // not used yet
-    int valid;                 // this entry is valid
-    uint64_t network_time;     // the network time at the local time
-    uint64_t local_time;       // the time when the network time is valid
-};
-
-struct __attribute__((__packed__)) shm_basic_structure {
-};
-
-struct __attribute__((__packed__)) shm_structure {
-    pthread_mutex_t shm_mutex; // for safely accessing the structure
-    uint16_t size_of_clock_array; // check this is equal to MAX_SHARED_CLOCKS
-    uint16_t version; // check this is equal to NQPTP_SHM_STRUCTURES_VERSION
-    uint32_t flags;
-    struct clock_source clocks[MAX_SHARED_CLOCKS];
-};
-
-#endif // __NQPTP_SHM_STRUCTURES_H
-