Add initial remsim-bankd skeleton
This is not a complete program yet, but a rough initial skeleton with
the key data structures in place, as well as the thread / locking model
in place.
Change-Id: I5ad5a1a4918b8eacdaeb7e709ff05dc056346752
diff --git a/src/main.c b/src/main.c
index 977785c..67b7a41 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,7 +36,12 @@
#include "internal.h"
+static void *g_ctx;
+__thread void *talloc_asn1_ctx;
+
int main(int argc, char **argv)
{
- card_readers_probe(NULL);
+ g_ctx = talloc_named_const(NULL, 0, "main");
+ talloc_asn1_ctx = talloc_named_const(g_ctx, 0, "asn1_context");
+ card_readers_probe(g_ctx);
}