rename include files into trust_router
authorSam Hartman <hartmans@debian.org>
Wed, 20 Mar 2013 17:36:50 +0000 (13:36 -0400)
committerSam Hartman <hartmans@debian.org>
Wed, 20 Mar 2013 17:36:50 +0000 (13:36 -0400)
common/tr_msg.c
common/tr_name.c
include/tr.h
include/tr_msg.h
include/trust_router/tid.h [moved from include/tid.h with 97% similarity]
include/trust_router/tr_name.h [moved from include/tr_name.h with 92% similarity]
include/trust_router/tr_versioning.h [moved from include/tr_versioning.h with 100% similarity]
tid/example/tidc_main.c
tid/example/tids_main.c
tid/tidc.c
tid/tids.c

index d3fc712..b475c02 100644 (file)
@@ -37,8 +37,8 @@
 #include <jansson.h>
 
 #include <tr_msg.h>
-#include <tr_name.h>
-#include <tid.h>
+#include <trust_router/tr_name.h>
+#include <trust_router/tid.h>
 
 static json_t *tr_msg_encode_dh(DH *dh)
 {
index b5e1526..62c3baa 100644 (file)
@@ -35,7 +35,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <tr_name.h>
+#include <trust_router/tr_name.h>
 
 TR_NAME *tr_new_name (char *name) 
 {
index f7804d9..8548bd1 100644 (file)
@@ -36,9 +36,9 @@
 #define TR_H
 
 #include <tr_msg.h>
-#include <tr_name.h>
+#include <trust_router/tr_name.h>
 #include <tr_config.h>
-#include <tid.h>
+#include <trust_router/tid.h>
 
 #define TRUST_ROUTER_PORT      12308
 
index c30fe23..1ab2c72 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef TR_MSG_H
 #define TR_MSG_H
 
-#include <tid.h>
+#include <trust_router/tid.h>
 #include <jansson.h>
 
 enum msg_type {
similarity index 97%
rename from include/tid.h
rename to include/trust_router/tid.h
index 8e923e9..68d8074 100644 (file)
@@ -39,8 +39,8 @@
 #include <openssl/dh.h>
 
 #include <gsscon.h>
-#include <tr_name.h>
-#include <tr_versioning.h>
+#include <trust_router/tr_name.h>
+#include <trust_router/tr_versioning.h>
 
 #define TID_PORT       12309
 
similarity index 92%
rename from include/tr_name.h
rename to include/trust_router/tr_name.h
index 3f610bb..21c6835 100644 (file)
 
 #ifndef TR_NAME_H
 #define TR_NAME_H
+#include <trust_router/tr_versioning.h>
 
 typedef struct tr__name {
   char *buf;
   int len;
 } TR_NAME;
 
-TR_NAME *tr_new_name (char *name);
-TR_NAME *tr_dup_name (TR_NAME *from);
+TR_EXPORT TR_NAME *tr_new_name (char *name);
+TR_EXPORT TR_NAME *tr_dup_name (TR_NAME *from);
 
 #endif
index 9f2943e..e6c1579 100644 (file)
@@ -36,7 +36,7 @@
 #include <stdio.h>
 
 #include <gsscon.h>
-#include <tid.h>
+#include <trust_router/tid.h>
 
 static int tidc_response_received = 0;
 
index 3963233..b35f37a 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <stdio.h>
 
-#include <tid.h>
+#include <trust_router/tid.h>
 
 int tids_req_handler (TIDS_INSTANCE * tids,
                      TID_REQ *req, 
index deff4ed..bb97ebd 100644 (file)
@@ -38,8 +38,9 @@
 
 #include <gsscon.h>
 #include <tr_dh.h>
-#include <tid.h>
+#include <trust_router/tid.h>
 #include <tr_msg.h>
+#include <gsscon.h>
 
 /* char tmp_key[32] = 
   {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
index 7b7d01f..7ffac8c 100644 (file)
@@ -41,7 +41,8 @@
 #include <jansson.h>
 
 #include <gsscon.h>
-#include <tid.h>
+#include <trust_router/tid.h>
+
 
 static int tids_listen (int port) 
 {