From 9e06763d12ad1e74cc9999bf5e586e6f44b9c7d0 Mon Sep 17 00:00:00 2001
From: Jake Drahos <j@kedrahos.com>
Date: Thu, 2 Feb 2017 01:26:56 -0600
Subject: [PATCH] Renamed files

---
 .../src/backend/{getcontrol.c => getparam.c}  |  0
 groundStation/src/backend/getparam.h          | 28 +++++++++++++++++++
 .../src/backend/{respcontrol.c => response.c} |  0
 .../src/backend/{respcontrol.h => response.h} |  0
 .../src/backend/{setcontrol.c => setparam.c}  |  0
 .../src/backend/{setcontrol.h => setparam.h}  |  0
 6 files changed, 28 insertions(+)
 rename groundStation/src/backend/{getcontrol.c => getparam.c} (100%)
 create mode 100644 groundStation/src/backend/getparam.h
 rename groundStation/src/backend/{respcontrol.c => response.c} (100%)
 rename groundStation/src/backend/{respcontrol.h => response.h} (100%)
 rename groundStation/src/backend/{setcontrol.c => setparam.c} (100%)
 rename groundStation/src/backend/{setcontrol.h => setparam.h} (100%)

diff --git a/groundStation/src/backend/getcontrol.c b/groundStation/src/backend/getparam.c
similarity index 100%
rename from groundStation/src/backend/getcontrol.c
rename to groundStation/src/backend/getparam.c
diff --git a/groundStation/src/backend/getparam.h b/groundStation/src/backend/getparam.h
new file mode 100644
index 000000000..edbb85081
--- /dev/null
+++ b/groundStation/src/backend/getparam.h
@@ -0,0 +1,28 @@
+#ifndef _getcontrol_h
+#define _getcontrol_h
+
+#include "packet.h"
+#include "controller.h"
+
+#include <sys/types.h>
+
+
+/* Creates data and metadata for a getcontrol packet.
+ * Returns data size.
+ */
+ssize_t EncodeGetcontrol(
+		struct metadata *m, /* Out */
+		uint8_t *data,      /* Out */
+		size_t data_size,   /* Data buffer max size */
+		const struct controller_message *cm); /* Value is not used; only IDs */
+
+/* Decode a metadata and data to populate a message
+ * Returns 0 on success, -1 on failure
+ */
+int DecodeGetcontrol(
+		struct controller_message *cm, /* Out. Value is undefined */
+		const struct metadata *m,      /* In */
+		const uint8_t * data);         /* In */
+
+
+#endif
diff --git a/groundStation/src/backend/respcontrol.c b/groundStation/src/backend/response.c
similarity index 100%
rename from groundStation/src/backend/respcontrol.c
rename to groundStation/src/backend/response.c
diff --git a/groundStation/src/backend/respcontrol.h b/groundStation/src/backend/response.h
similarity index 100%
rename from groundStation/src/backend/respcontrol.h
rename to groundStation/src/backend/response.h
diff --git a/groundStation/src/backend/setcontrol.c b/groundStation/src/backend/setparam.c
similarity index 100%
rename from groundStation/src/backend/setcontrol.c
rename to groundStation/src/backend/setparam.c
diff --git a/groundStation/src/backend/setcontrol.h b/groundStation/src/backend/setparam.h
similarity index 100%
rename from groundStation/src/backend/setcontrol.h
rename to groundStation/src/backend/setparam.h
-- 
GitLab