error: field ‘XXX’ declared as a function [How to Solve]

Problem description

Some time ago, I started a small smart home project to practice my hand. I encountered this problem when compiling

Compilation error:

reason:

The function pointer in the structure element is incorrectly defined

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <wiringSerial.h>

struct Command{
        char cmdName[128];
        char cmd[32];
        int (*init)();		//int init();
        int (*getCmd)(struct Command *voice);	//int getCmd(struct Command *voice);
        char log[1024];
        int fd;
        struct Command *next;
};

Read More: