new: debug and version macros, cleaning up client/server APIs
This commit is contained in:
@ -15,7 +15,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
lm_ctx_t ctx;
|
||||
lm_ctx_init(&ctx);
|
||||
ctx.debug = true;
|
||||
|
||||
if (!lm_ctx_set_data(&ctx, DATA_DIR)) {
|
||||
printf("failed to set data dir: %s (%d)\n", lm_strerror(), lm_error());
|
||||
@ -27,6 +26,8 @@ int main(int argc, char *argv[]) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
lm_ctx_pools_test(&ctx);
|
||||
|
||||
if (!lm_ctx_pools_load(&ctx, true, NULL, NULL)) {
|
||||
printf("failed to load pools: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
|
@ -15,8 +15,6 @@ int main(int argc, char *argv[]) {
|
||||
lm_pool_t *pool;
|
||||
lm_ctx_init(&ctx);
|
||||
|
||||
ctx.debug = true;
|
||||
|
||||
if ((pool = lm_ctx_pools_add(&ctx, "test", "mptp://127.0.0.1:5858")) == NULL) {
|
||||
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
|
4
examples/tests/INFO
Normal file
4
examples/tests/INFO
Normal file
@ -0,0 +1,4 @@
|
||||
[base]
|
||||
size = 314073
|
||||
maintainer = ngn
|
||||
pubkey = F9E70878C2FB389AEC2BA34CA3654DF5AD9F641D
|
BIN
examples/tests/LIST
Normal file
BIN
examples/tests/LIST
Normal file
Binary file not shown.
BIN
examples/tests/grep_3.11.mpf
Normal file
BIN
examples/tests/grep_3.11.mpf
Normal file
Binary file not shown.
BIN
examples/tests/grep_3.11.mpf.sig
Normal file
BIN
examples/tests/grep_3.11.mpf.sig
Normal file
Binary file not shown.
@ -1,4 +0,0 @@
|
||||
[test]
|
||||
size = 18221
|
||||
author = ngn
|
||||
pubkey = F9E70878C2FB389AEC2BA34CA3654DF5AD9F641
|
BIN
examples/tests/which_2.21.mpf
Normal file
BIN
examples/tests/which_2.21.mpf
Normal file
Binary file not shown.
BIN
examples/tests/which_2.21.mpf.sig
Normal file
BIN
examples/tests/which_2.21.mpf.sig
Normal file
Binary file not shown.
Reference in New Issue
Block a user