RICPLT-2707 - Create RNIB reader in C
[ric-plt/nodeb-rnib.git] / creader / test.c
diff --git a/creader/test.c b/creader/test.c
new file mode 100644 (file)
index 0000000..95fdd73
--- /dev/null
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "rnibreader.h"
+
+int main() {
+    printf("Using rnibreader lib from C:\n");
+
+    open();
+    void *result = getListGnbIds();
+
+    if(result == NULL){
+
+        printf("ERROR: no data from getListGnbIds\n");
+        return 1;
+    }
+
+    printf("getListGnbIds response: %s\n", (char *)result);
+
+    close();
+
+    free(result);
+
+    return 0;
+}
\ No newline at end of file