Prefix libguestfs-inspect functions with guestfs_inspect_.

The functions are also made non-static.
This is in preparation to moving the header function implementations to a .c file.
This commit is contained in:
2024-03-06 20:15:40 -05:00
parent 1d17e047b7
commit 5f98d369fa
3 changed files with 10 additions and 10 deletions

View File

@@ -106,7 +106,7 @@ static void *worker_task(zsock_t *pipe, char *disk_path) {
printf("Received a message in the worker\n");
printf("Size: %zu\tContent size: %zu\n", zmsg_size(msg), zmsg_content_size(msg));
struct guestfs_inpsect_command *command = zmsg_to_command(msg);
struct guestfs_inpsect_command *command = guestfs_inspect_zmsg_to_command(msg);
printf("Size OF:: %zu\n", (sizeof(struct guestfs_inpsect_command)));
zmsg_t *reply = zmsg_new();
if (!reply) {
@@ -132,7 +132,7 @@ static void *worker_task(zsock_t *pipe, char *disk_path) {
// Sending reply
zmsg_send(&reply, pipe);
command_destroy(&command);
guestfs_inspect_command_destroy(&command);
zmsg_destroy(&msg);
zmsg_destroy(&reply);
}
@@ -151,7 +151,7 @@ int main(int argc, char **argv) {
char *name = strtok(NULL, ":");
printf("name: '%s'\n", name);
char *ep = endpoint();
char *ep = guestfs_inspect_endpoint();
printf("ep: %s\n", ep);
zsock_t *worker = zsock_new_rep(ep);
free(ep);