]> git.ozlabs.org Git - ccan/blobdiff - ccan/dgraph/_info
dgraph: new module for directed graphs.
[ccan] / ccan / dgraph / _info
diff --git a/ccan/dgraph/_info b/ccan/dgraph/_info
new file mode 100644 (file)
index 0000000..10c8296
--- /dev/null
@@ -0,0 +1,24 @@
+#include "config.h"
+#include <string.h>
+
+/**
+ * dgraph - simple directed graph module
+ *
+ * This code implements a simple directed graph, with nodes and edges.
+ *
+ * License: LGPL (v2.1 or any later version)
+ */
+int main(int argc, char *argv[])
+{
+       /* Expect exactly one argument */
+       if (argc != 2)
+               return 1;
+
+       if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/tlist\n");
+               printf("ccan/typesafe_cb\n");
+               return 0;
+       }
+
+       return 1;
+}