summaryrefslogtreecommitdiff
path: root/tests/structinit
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-07-09 17:58:39 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2014-08-14 08:52:20 -0500
commitc180c06586050a33f6e8a6d25cc30b7bcbef702d (patch)
treeb05d0f67ad9c3320bd7c3dd42a4b53334119619b /tests/structinit
parente62f96dea5a46098cbca5a287f29ca811003bd68 (diff)
downloadlibgit2-c180c06586050a33f6e8a6d25cc30b7bcbef702d.tar.gz
Custom transport: minor cleanups
* Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://").
Diffstat (limited to 'tests/structinit')
-rw-r--r--tests/structinit/structinit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/structinit/structinit.c b/tests/structinit/structinit.c
index 38bedada7..def9fefc0 100644
--- a/tests/structinit/structinit.c
+++ b/tests/structinit/structinit.c
@@ -2,6 +2,7 @@
#include <git2/sys/config.h>
#include <git2/sys/odb_backend.h>
#include <git2/sys/refdb_backend.h>
+#include <git2/sys/transport.h>
#define STRINGIFY(s) #s