The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
pipe.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 
18 /**
19  * $Id: 7c3d9cb0b83fd0d7ce86e6d727a75513f2170a7a $
20  * @file lib/bio/pipe.h
21  * @brief BIO pipe handlers.
22  *
23  * @copyright 2024 Network RADIUS SAS (legal@networkradius.com)
24  */
25 RCSIDH(lib_bio_pipe_h, "$Id: 7c3d9cb0b83fd0d7ce86e6d727a75513f2170a7a $")
26 
27 typedef struct {
31 
32 fr_bio_t *fr_bio_pipe_alloc(TALLOC_CTX *ctx, fr_bio_pipe_cb_funcs_t *cb, size_t buffer_size) CC_HINT(nonnull);
33 
int(* fr_bio_callback_t)(fr_bio_t *bio)
Definition: base.h:84
Definition: base.h:103
#define RCSIDH(h, id)
Definition: build.h:445
fr_bio_t * fr_bio_pipe_alloc(TALLOC_CTX *ctx, fr_bio_pipe_cb_funcs_t *cb, size_t buffer_size)
Allocate a thread-safe pipe which can be used for both reads and writes.
Definition: pipe.c:147
void fr_bio_pipe_set_eof(fr_bio_t *bio)
Set EOF.
Definition: pipe.c:182
fr_bio_callback_t writeable
Definition: pipe.h:29
fr_bio_callback_t readable
Definition: pipe.h:28
static fr_bio_t * bio
Definition: radclient-ng.c:86
int nonnull(2, 5))