new: implement PULL command, add join functions
This commit is contained in:
@ -21,14 +21,19 @@ int main(int argc, char *argv[]) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (lm_ctx_pools_add(&ctx, "test", argv[1]) == NULL) {
|
||||
if (lm_ctx_pool_add(&ctx, "base", argv[1]) == NULL) {
|
||||
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
|
||||
lm_ctx_pools_test(&ctx, NULL, NULL);
|
||||
lm_ctx_pools_get_info(&ctx, true, NULL, NULL);
|
||||
lm_ctx_pools_get_list(&ctx, true, NULL, NULL);
|
||||
lm_ctx_pool_test(&ctx, NULL, NULL);
|
||||
lm_ctx_pool_get_info(&ctx, true, true, NULL, NULL);
|
||||
lm_ctx_pool_get_list(&ctx, true, true, NULL, NULL);
|
||||
|
||||
if (lm_ctx_package_get(&ctx, "which", NULL) == NULL) {
|
||||
printf("failed to get the package: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
|
||||
ret = EXIT_SUCCESS;
|
||||
|
||||
|
Reference in New Issue
Block a user