From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 18 Mar 2021 18:24:19 +0000 (+0000) Subject: Don't need a C++ header file just yet. X-Git-Tag: 1.1-dev~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da06c57aa47df4e8db17e021cacd651fb6eb2949;p=thirdparty%2Fnqptp.git Don't need a C++ header file just yet. --- diff --git a/nqptp-shm-structures.hpp b/nqptp-shm-structures.hpp deleted file mode 100644 index 777196b..0000000 --- a/nqptp-shm-structures.hpp +++ /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 -#include -#include - -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 -