Import moonshot-trust-router_1.4.1.orig.tar.gz
[trust_router.git] / include / tr.h
index 8548bd1..61adc36 100644 (file)
 #ifndef TR_H
 #define TR_H
 
-#include <tr_msg.h>
+#include <tid_internal.h>
 #include <trust_router/tr_name.h>
-#include <tr_config.h>
-#include <trust_router/tid.h>
+#include <tr_msg.h>
+#include <tr_rp.h>
+
+typedef struct tr_instance {
+  struct tr_cfg *new_cfg;      /* unapplied configuration */
+  struct tr_cfg *active_cfg;
+  TIDS_INSTANCE *tids;
+  struct tr_rp_client *rp_gss;         /* Client matching GSS name, TBD -- FIX ME */
+} TR_INSTANCE;
 
-#define TRUST_ROUTER_PORT      12308
+TR_INSTANCE *tr_create(void);
+void tr_destroy(TR_INSTANCE *tr);
 
 #endif