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

@@ -28,7 +28,7 @@ struct guestfs_inpsect_command {
} args;
};
static char *endpoint() {
char *guestfs_inspect_endpoint() {
const char *guestfs_inspect_endpoint = getenv("GUESTFS_INSPECT_ENDPOINT");
const char *socket_file_name = "/guestfs-inspect.sock";
char *res = NULL;
@@ -53,7 +53,7 @@ static char *endpoint() {
return res;
}
static zmsg_t *command_to_zmsg(struct guestfs_inpsect_command *command) {
zmsg_t *guestfs_inspect_command_to_zmsg(struct guestfs_inpsect_command *command) {
zmsg_t *res = zmsg_new();
zmsg_addstr(res, command->name);
@@ -79,7 +79,7 @@ static zmsg_t *command_to_zmsg(struct guestfs_inpsect_command *command) {
return res;
}
static struct guestfs_inpsect_command *zmsg_to_command(zmsg_t *msg) {
struct guestfs_inpsect_command *guestfs_inspect_zmsg_to_command(zmsg_t *msg) {
struct guestfs_inpsect_command *res = malloc(sizeof(struct guestfs_inpsect_command));
res->name = zmsg_popstr(msg);
@@ -114,7 +114,7 @@ static struct guestfs_inpsect_command *zmsg_to_command(zmsg_t *msg) {
return res;
}
static void command_destroy(struct guestfs_inpsect_command **c) {
void guestfs_inspect_command_destroy(struct guestfs_inpsect_command **c) {
free((*c)->name);
switch ((*c)->command) {
case GUESTFS_COMMAND_LS: