File: xlogger.h

package info (click to toggle)
marote 2.4-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 556 kB
  • ctags: 224
  • sloc: cpp: 1,925; makefile: 46
file content (42 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// xlogger.h
//
// Written by Mike Studer AB6CV
// 2004-12-22
//

#ifndef XLOGGER_H
#define XLOGGER_H

// OS includes
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>

class xlogger
{
 private:
 
  /* structure needed for the message queue */
typedef struct
{
        long mtype;                 // mtype should always be 88 
        char mtext[1024];       // mtext holds the message 
}
msgtype;
msgtype msgbuf;
 int msgid;
 
 public:

// send data to xlog
   int sendit(char*);
     
};

#endif