This commit is contained in:
2024-03-02 19:09:24 -05:00
commit a01112d230
3 changed files with 20 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
guestfish-inspect
*~
*.qcow2

2
Makefile Normal file
View File

@@ -0,0 +1,2 @@
build:
gcc main.c -o guestfish-inspect

15
main.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
#include <czmq.h>
#include <guestfs.h>
int main(int argc, char **argv) {
if (argc < 2) {
printf("Usage: %s <disk-path>\n", argv[0]);
return EXIT_FAILURE;
}
printf("Hello, %s!\n", argv[1]);
return EXIT_SUCCESS;
}