Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
RecIoIter.h
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: RecIoIter.h 4915 2021-12-01 18:26:55Z wini $
15 *
16 * COPYRIGHT: Real Time Logic, 2008
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 *
38 */
39#ifndef _RecIoIter_h
40#define _RecIoIter_h
41
42#include <IoIntf.h>
43#include <BaServerLib.h>
44
45struct RecIoIter;
46
47typedef int (*RecIoIter_OnResponse)(
48 struct RecIoIter* o, const char* from, const char* to, IoStat* st);
49typedef int (*RecIoIter_OnErr)(
50 struct RecIoIter* o, const char* name, int err, const char* errMsg);
51
52typedef struct RecIoIter
53{
54 IoStat st;
55 AllocatorIntf* alloc;
56 IoIntf* io;
57 RecIoIter_OnResponse onResponseFp;
58 RecIoIter_OnErr onErrFp;
59 int recCounter;
60} RecIoIter;
61
62#define RecIoIter_constructor( \
63o, allocMA, ioMA, onResponseFpMA, onErrFpMA) do { \
64 (o)->alloc=allocMA; \
65 (o)->io=ioMA; \
66 (o)->onResponseFp=onResponseFpMA; \
67 (o)->onErrFp=onErrFpMA; \
68 (o)->recCounter=0; \
69} while(0)
70
71
72BA_API int RecIoIter_doResource(RecIoIter* o,const char* from,const char* to);
73
74#endif
Memory allocation and deallocation Interface class.
Definition: AllocatorIntf.h:98
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:482
Resource information.
Definition: IoIntf.h:170