Commit Graph

15 Commits

Author SHA1 Message Date
bc7ccbd805 Move function implementations out of the header file. 2024-03-06 23:32:07 -05:00
5f98d369fa 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.
2024-03-06 23:32:07 -05:00
1d17e047b7 Add header guard to libguestfs-inspect.h 2024-03-06 23:22:29 -05:00
3c9564cb3e Use environment variable for the socket.
The default behavior is to create a socket file at /tmp/guestfs-inspect.sock.
If XDG_RUNTIME_DIR is set, that will be used instead of /tmp.

One could instead specify GUESTFS_INSPECT_ENDPOINT, which requires the full endpoint, as specified by: https://libzmq.readthedocs.io/en/zeromq3-x/zmq_connect.html

You will likely want to use ipc://, but you can probably use tcp:// or (e)pgm:// if that is appropriate.
2024-03-06 23:22:29 -05:00
ebc07d0cf7 Add common support for cat command. 2024-03-03 17:19:11 -05:00
1e5357c4cf Added destroy command function 2024-03-03 17:14:43 -05:00
b99513c8b3 Fix serialization
Was putting new data in the front of the message instead of the end.
This mismatched with how I was deserializing the messages
2024-03-03 16:50:45 -05:00
a4b56107aa Add deserialize function 2024-03-03 16:09:58 -05:00
8a814b1d93 Add basic serialization of the message 2024-03-03 15:57:53 -05:00
9422f77119 Update struct to use pointers instead of flexible length structs 2024-03-03 15:46:18 -05:00
fd2ee16f79 Renamed enum 2024-03-03 02:05:33 -05:00
2bdf450d65 Initial client 2024-03-03 01:01:56 -05:00
15322a601b Add command union and name of the disk to be associated with. 2024-03-02 23:29:39 -05:00
6ca7727ee8 Add initial header file
This will be used in the client and the daemon
2024-03-02 23:29:39 -05:00
daf21918e0 wip 2024-03-02 21:37:48 -05:00