diff --git a/README.md b/README.md index 99e6d0e..5c455c8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # libmp | MatterLinux package management library -The core library for [`mp`](https://git.matterlinux.xyz/Matter/mp), it has +The core library for [`matt`](https://git.matterlinux.xyz/Matter/matt), it has components for transferring, installing, updating and removing packages. ### Installation diff --git a/examples/client/check.c b/examples/client/check.c index 969d6f9..a10f8b6 100644 --- a/examples/client/check.c +++ b/examples/client/check.c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) { lm_entry_init(&entry); - if (!lm_ctx_init(&ctx, ROOT_DIR, NULL, DATA_DIR)) { + if (!lm_ctx_new(&ctx, ROOT_DIR, NULL, DATA_DIR)) { printf("failed to init the ctx: %s (%d)\n", lm_strerror(), lm_error()); goto end; } diff --git a/examples/client/install.c b/examples/client/install.c index d3721e5..7cd1dd3 100644 --- a/examples/client/install.c +++ b/examples/client/install.c @@ -19,7 +19,7 @@ int main(int argc, char *argv[]) { return ret; } - if (!lm_ctx_init(&ctx, ROOT_DIR, TEMP_DIR, DATA_DIR)) { + if (!lm_ctx_new(&ctx, ROOT_DIR, TEMP_DIR, DATA_DIR)) { printf("failed to init the ctx: %s (%d)\n", lm_strerror(), lm_error()); goto end; } diff --git a/examples/client/list.c b/examples/client/list.c index 658c307..4746e8d 100644 --- a/examples/client/list.c +++ b/examples/client/list.c @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) { lm_entry_init(&entry); - if (!lm_ctx_init(&ctx, NULL, NULL, DATA_DIR)) { + if (!lm_ctx_new(&ctx, NULL, NULL, DATA_DIR)) { printf("failed to set data dir: %s (%d)\n", lm_strerror(), lm_error()); goto end; } diff --git a/examples/client/remove.c b/examples/client/remove.c index 04dfa6d..f904e9b 100644 --- a/examples/client/remove.c +++ b/examples/client/remove.c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) { return ret; } - if (!lm_ctx_init(&ctx, ROOT_DIR, TEMP_DIR, DATA_DIR)) { + if (!lm_ctx_new(&ctx, ROOT_DIR, TEMP_DIR, DATA_DIR)) { printf("failed to init the ctx: %s (%d)\n", lm_strerror(), lm_error()); goto end; } diff --git a/examples/client/update.c b/examples/client/update.c index 29a76ef..a78eb1f 100644 --- a/examples/client/update.c +++ b/examples/client/update.c @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) { char pooldir[strlen(TEMP_DIR) + 10]; sprintf(pooldir, "%s/%s", DATA_DIR, "pool"); - if (!lm_ctx_init(&ctx, ROOT_DIR, TEMP_DIR, DATA_DIR)) { + if (!lm_ctx_new(&ctx, ROOT_DIR, TEMP_DIR, DATA_DIR)) { printf("failed to init the ctx: %s (%d)\n", lm_strerror(), lm_error()); goto end; } diff --git a/examples/server/main.c b/examples/server/main.c index 7920aaa..ec8f0a8 100644 --- a/examples/server/main.c +++ b/examples/server/main.c @@ -14,7 +14,7 @@ int main(int argc, char *argv[]) { return ret; } - if (!lm_ctx_init(&ctx, NULL, TEMP_DIR, NULL)) { + if (!lm_ctx_new(&ctx, NULL, TEMP_DIR, NULL)) { printf("failed to init the ctx: %s (%d)\n", lm_strerror(), lm_error()); goto end; }