Displaying 1 result from an estimated 1 matches for "t_server".
Did you mean:
s_server
2020 Apr 29
0
golang: panic: runtime error: cgo argument has Go pointer to Go pointer
...i found struct in guestfs.h
struct guestfs_add_drive_opts_argv {
...
char *const *server;
...
}
so i make a daemon to test. has the same error. how could i to use libguestfs to connect ceph rbd use golang interface.
package main
/*
#include <stdio.h>
#include <string.h>
struct t_server {
const char *protocol;
char *const *addr;
};
void show(struct t_server *optargs) {
if (optargs->protocol == NULL){
printf("protocol is null \n");
}
printf("proto is %s\n", optargs->protocol);
int num = strlen(*optargs...