]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/tevent/_info
lca2011: hacky import of tevent.
[ccan-lca-2011.git] / ccan / tevent / _info
diff --git a/ccan/tevent/_info b/ccan/tevent/_info
new file mode 100644 (file)
index 0000000..1d50b73
--- /dev/null
@@ -0,0 +1,23 @@
+#include <string.h>
+#include "config.h"
+
+/**
+ * tevent - reduced version of the SAMBA tevent library
+ *
+ * Cut down and modified for CCAN as an example.
+ *
+ * License: GPL
+ */
+int main(int argc, char *argv[])
+{
+       /* Expect exactly one argument */
+       if (argc != 2)
+               return 1;
+
+       if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/talloc\n");
+               return 0;
+       }
+
+       return 1;
+}