Firm_event  Error In Compilation -Please Help!

Hi I'm trying to read data from a USB BARCODE SCANNER
I've written a little sample code... But It refuses to Compile.
Please If anyone could help me with definitions.
Thanks !
#include <sys/types.h>
#include <stropts.h>
#include <time.h>
#include <stdio.h> /* Standard input/output definitions */
#include <string.h> /* String function definitions */
#include <stdlib.h>
#include <unistd.h> /* UNIX standard function definitions */
#include <fcntl.h> /* File control definitions */
#include <errno.h> /* Error number definitions */
#include <termios.h> /* POSIX terminal control definitions */
#include <sys/vuid_queue.h>
main( int argc, char *argv[]){
int fd,rval;
char c;
Firm_event fe;
fd = open("dev/usb/hid3",O_RDWR);
if (fd < 0 ) {
exit (1);
if ((rval = ioctl(fd, I_PUSH,"usbkbm")) < 0 ) {
exit (1);
while (read(fd, &fe, sizeof(fe))) {
printf("\n");
printf("%d", fe.id);
printf("%d", fe.value);
gcc bcode.c
In file included from bcode.c:12:
/usr/include/sys/vuid_queue.h:46: parse error before "Firm_event"
bcode.c: In function `main':
bcode.c:17: `Firm_event' undeclared (first use in this function)
bcode.c:17: (Each undeclared identifier is reported only once
bcode.c:17: for each function it appears in.)
bcode.c:17: parse error before "fe"
bcode.c:25: `fe' undeclared (first use in this function)

Hello.
You must include the firm events include file before <sys/vuid_queue.h>.
This file is named something like <sys/vuid_event.h> or <sys/firm_event.h> (I'm not 100% sure):
#include <sys/vuid_event.h>
#include <sys/vuid_queue.h>
I hope this helps.
Martin R.

Similar Messages

Maybe you are looking for

  • Budget not appearing in Report S_ALR_87013558

    Hi Friends, For project the budget is not getting displayed in Report S_ALR_87013558 though the budget is planned by TCode: CJ30 and released also by TCode: CJ32 Is there any setting in customising in information systems to display in the report. I t

  • Caller ID on TV does not work.

    This feature has become so unreliable that I have had to make several calls and send emails to Verizon.  The last tech promised me that the problem was resolved for ever, but alas, the problem has returned.  No caller ID on TV.  It works OK on my pho

  • Can I publish an event to more than one shared calendar in iCal?

    I have shared calendars (called "home") with my wife & kids and (called "Work") with my secretary at work so that my family can add home events and my secretary can add work things . I've done this as I don't want my secretary seeing when my kids hav

  • What RAM do I need and where can I get it from?

    Hi all, I know this is probably a simple question, but I just want to make sure I don't mess up my computer! I have an old school DV iMac, and bought the Mac OS X upgrade not too long after it came out (which is rather a while ago now!), but couldn't

  • Recordings are not getting Purged in MediaSense

    Dear All, I hope you all are in good health, the call records are not getting purged we have set the purging state at 2 days, the Cisco MediaSense Media Service was restarted. Grateful to have a guidance in this regard, if there are anyother settings