retire PUBLIC, PRIVATE and FORWARD
This commit is contained in:
@@ -42,9 +42,9 @@ typedef struct qp_fd
|
||||
#define QFF_EMPTY 0
|
||||
#define QFF_INUSE 1
|
||||
|
||||
PRIVATE qp_fd_t qp_fd_table[QP_FD_NR];
|
||||
static qp_fd_t qp_fd_table[QP_FD_NR];
|
||||
|
||||
PRIVATE struct export_param_list inet_ex_list[]=
|
||||
static struct export_param_list inet_ex_list[]=
|
||||
{
|
||||
QP_VARIABLE(sr_fd_table),
|
||||
QP_VARIABLE(ip_dev),
|
||||
@@ -56,9 +56,9 @@ PRIVATE struct export_param_list inet_ex_list[]=
|
||||
QP_END()
|
||||
};
|
||||
|
||||
PRIVATE struct export_params inet_ex_params= { inet_ex_list, NULL };
|
||||
static struct export_params inet_ex_params= { inet_ex_list, NULL };
|
||||
|
||||
PRIVATE struct queryvars {
|
||||
static struct queryvars {
|
||||
/* Input */
|
||||
acc_t *param;
|
||||
|
||||
@@ -73,25 +73,25 @@ PRIVATE struct queryvars {
|
||||
} *qvars;
|
||||
|
||||
|
||||
FORWARD int qp_open ARGS(( int port, int srfd,
|
||||
static int qp_open ARGS(( int port, int srfd,
|
||||
get_userdata_t get_userdata, put_userdata_t put_userdata,
|
||||
put_pkt_t put_pkt, select_res_t select_res ));
|
||||
FORWARD void qp_close ARGS(( int fd ));
|
||||
FORWARD int qp_read ARGS(( int fd, size_t count ));
|
||||
FORWARD int qp_write ARGS(( int fd, size_t count ));
|
||||
FORWARD int qp_ioctl ARGS(( int fd, ioreq_t req ));
|
||||
FORWARD int qp_cancel ARGS(( int fd, int which_operation ));
|
||||
FORWARD int qp_select ARGS(( int fd, unsigned operations ));
|
||||
FORWARD qp_fd_t *get_qp_fd ARGS(( int fd ));
|
||||
FORWARD int do_query ARGS(( qp_fd_t *qp_fd, acc_t *pkt, int count ));
|
||||
FORWARD int qp_getc ARGS(( void ));
|
||||
FORWARD void qp_putc ARGS(( struct queryvars *qv, int c ));
|
||||
FORWARD void qp_buffree ARGS(( int priority ));
|
||||
static void qp_close ARGS(( int fd ));
|
||||
static int qp_read ARGS(( int fd, size_t count ));
|
||||
static int qp_write ARGS(( int fd, size_t count ));
|
||||
static int qp_ioctl ARGS(( int fd, ioreq_t req ));
|
||||
static int qp_cancel ARGS(( int fd, int which_operation ));
|
||||
static int qp_select ARGS(( int fd, unsigned operations ));
|
||||
static qp_fd_t *get_qp_fd ARGS(( int fd ));
|
||||
static int do_query ARGS(( qp_fd_t *qp_fd, acc_t *pkt, int count ));
|
||||
static int qp_getc ARGS(( void ));
|
||||
static void qp_putc ARGS(( struct queryvars *qv, int c ));
|
||||
static void qp_buffree ARGS(( int priority ));
|
||||
#ifdef BUF_CONSISTENCY_CHECK
|
||||
FORWARD void qp_bufcheck ARGS(( void ));
|
||||
static void qp_bufcheck ARGS(( void ));
|
||||
#endif
|
||||
|
||||
PUBLIC void qp_init()
|
||||
void qp_init()
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -110,7 +110,7 @@ PUBLIC void qp_init()
|
||||
qp_ioctl, qp_cancel, qp_select);
|
||||
}
|
||||
|
||||
PRIVATE int qp_open(port, srfd, get_userdata, put_userdata, put_pkt,
|
||||
static int qp_open(port, srfd, get_userdata, put_userdata, put_pkt,
|
||||
select_res)
|
||||
int port;
|
||||
int srfd;
|
||||
@@ -139,7 +139,7 @@ select_res_t select_res;
|
||||
return i;
|
||||
}
|
||||
|
||||
PRIVATE void qp_close(fd)
|
||||
static void qp_close(fd)
|
||||
int fd;
|
||||
{
|
||||
qp_fd_t *qp_fd;
|
||||
@@ -153,7 +153,7 @@ int fd;
|
||||
}
|
||||
}
|
||||
|
||||
PRIVATE int qp_read(fd, count)
|
||||
static int qp_read(fd, count)
|
||||
int fd;
|
||||
size_t count;
|
||||
{
|
||||
@@ -177,7 +177,7 @@ size_t count;
|
||||
return OK;
|
||||
}
|
||||
|
||||
PRIVATE int qp_write(fd, count)
|
||||
static int qp_write(fd, count)
|
||||
int fd;
|
||||
size_t count;
|
||||
{
|
||||
@@ -210,7 +210,7 @@ size_t count;
|
||||
return OK;
|
||||
}
|
||||
|
||||
PRIVATE int qp_ioctl(fd, req)
|
||||
static int qp_ioctl(fd, req)
|
||||
int fd;
|
||||
ioreq_t req;
|
||||
{
|
||||
@@ -222,7 +222,7 @@ ioreq_t req;
|
||||
return OK;
|
||||
}
|
||||
|
||||
PRIVATE int qp_cancel(fd, which_operation)
|
||||
static int qp_cancel(fd, which_operation)
|
||||
int fd;
|
||||
int which_operation;
|
||||
{
|
||||
@@ -230,7 +230,7 @@ int which_operation;
|
||||
return OK;
|
||||
}
|
||||
|
||||
PRIVATE int qp_select(fd, operations)
|
||||
static int qp_select(fd, operations)
|
||||
int fd;
|
||||
unsigned operations;
|
||||
{
|
||||
@@ -244,7 +244,7 @@ unsigned operations;
|
||||
return resops;
|
||||
}
|
||||
|
||||
PRIVATE qp_fd_t *get_qp_fd(fd)
|
||||
static qp_fd_t *get_qp_fd(fd)
|
||||
int fd;
|
||||
{
|
||||
qp_fd_t *qp_fd;
|
||||
@@ -255,7 +255,7 @@ int fd;
|
||||
return qp_fd;
|
||||
}
|
||||
|
||||
PRIVATE int do_query(qp_fd, pkt, count)
|
||||
static int do_query(qp_fd, pkt, count)
|
||||
qp_fd_t *qp_fd;
|
||||
acc_t *pkt;
|
||||
int count;
|
||||
@@ -297,7 +297,7 @@ int count;
|
||||
return qv.fd_offset;
|
||||
}
|
||||
|
||||
PRIVATE int qp_getc()
|
||||
static int qp_getc()
|
||||
{
|
||||
/* Return one character of the names to search for. */
|
||||
acc_t *pkt;
|
||||
@@ -322,7 +322,7 @@ PRIVATE int qp_getc()
|
||||
return c;
|
||||
}
|
||||
|
||||
PRIVATE void qp_putc(qv, c)
|
||||
static void qp_putc(qv, c)
|
||||
struct queryvars *qv;
|
||||
int c;
|
||||
{
|
||||
@@ -358,14 +358,14 @@ int c;
|
||||
qv->outbuf_off= 0;
|
||||
}
|
||||
|
||||
PRIVATE void qp_buffree (priority)
|
||||
static void qp_buffree (priority)
|
||||
int priority;
|
||||
{
|
||||
/* For the moment, we are not going to free anything */
|
||||
}
|
||||
|
||||
#ifdef BUF_CONSISTENCY_CHECK
|
||||
PRIVATE void qp_bufcheck()
|
||||
static void qp_bufcheck()
|
||||
{
|
||||
int i;
|
||||
qp_fd_t *qp_fd;
|
||||
|
||||
Reference in New Issue
Block a user