Open SCAP Library
Loading...
Searching...
No Matches
sch_queue.h
1/*
2 * Copyright 2018 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * "Jan Černý" <jcerny@redhat.com>
21 */
22
23#ifndef OPENSCAP_SCH_QUEUE_H
24#define OPENSCAP_SCH_QUEUE_H
25
26#include "util.h"
27#include "oscap_queue.h"
28#include "seap-descriptor.h"
29
30typedef struct {
31 pthread_t probe_thread_id;
32 pthread_t parent_thread_id;
33 struct oscap_queue *to_probe_queue;
34 struct oscap_queue *from_probe_queue;
35 pthread_cond_t to_probe_cond;
36 pthread_mutex_t to_probe_mutex;
37 pthread_cond_t from_probe_cond;
38 pthread_mutex_t from_probe_mutex;
39 int to_probe_cnt;
40 int from_probe_cnt;
42
43int sch_queue_connect(SEAP_desc_t *desc);
44ssize_t sch_queue_sendsexp(SEAP_desc_t *desc, SEXP_t *sexp, uint32_t flags);
45SEXP_t *sch_queue_recvsexp(SEAP_desc_t *desc);
46int sch_queue_close(SEAP_desc_t *desc, uint32_t flags);
47
48#endif /* OPENSCAP_SCH_QUEUE_H */
Definition seap-descriptor.h:44
Definition sexp-types.h:82
Definition oscap_queue.c:38
Definition sch_queue.h:30