forked from NavroopKaur/Notification-Junction
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathlib.h
More file actions
23 lines (20 loc) · 578 Bytes
/
lib.h
File metadata and controls
23 lines (20 loc) · 578 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _APPLIB_H
#define _APPLIB_H 1
#include<sys/types.h>
#include<sys/socket.h>
#include<sys/un.h>
#include<sys/stat.h>
#include<pthread.h>
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>
#include<errno.h>
#define AppGetnotify "app_getn_sock"
#define AppReg "app_reg_sock"
#define AppUnReg "app_unreg_sock"
#define QLEN 32
int appRegister(char *key_val_string);
int appUnregister(char *key_val_string);
int appGetnotify(int pid, char *key_val_string, char choice); /*choice is 1 for blocking and 0 for non_blocking...... */
#endif /*lib.h */