Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/fstrm
File: file.h
/*
[0] Fix | Delete
* Copyright (c) 2014 by Farsight Security, Inc.
[1] Fix | Delete
*
[2] Fix | Delete
* Permission is hereby granted, free of charge, to any person obtaining
[3] Fix | Delete
* a copy of this software and associated documentation files (the
[4] Fix | Delete
* "Software"), to deal in the Software without restriction, including
[5] Fix | Delete
* without limitation the rights to use, copy, modify, merge, publish,
[6] Fix | Delete
* distribute, sublicense, and/or sell copies of the Software, and to
[7] Fix | Delete
* permit persons to whom the Software is furnished to do so, subject to
[8] Fix | Delete
* the following conditions:
[9] Fix | Delete
*
[10] Fix | Delete
* The above copyright notice and this permission notice shall be included
[11] Fix | Delete
* in all copies or substantial portions of the Software.
[12] Fix | Delete
*
[13] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
[14] Fix | Delete
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
[15] Fix | Delete
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
[16] Fix | Delete
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
[17] Fix | Delete
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
[18] Fix | Delete
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
[19] Fix | Delete
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[20] Fix | Delete
*
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
#ifndef FSTRM_FILE_H
[24] Fix | Delete
#define FSTRM_FILE_H
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* \defgroup fstrm_file fstrm_file
[28] Fix | Delete
*
[29] Fix | Delete
* `fstrm_file` contains interfaces for opening \ref fstrm_reader or
[30] Fix | Delete
* \ref fstrm_writer objects that are backed by file I/O.
[31] Fix | Delete
*
[32] Fix | Delete
* @{
[33] Fix | Delete
*/
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Initialize an `fstrm_file_options` object, which is needed to configure the
[37] Fix | Delete
* file path to be opened by fstrm_file_reader_init() or
[38] Fix | Delete
* fstrm_file_writer_init().
[39] Fix | Delete
*
[40] Fix | Delete
* \return
[41] Fix | Delete
* `fstrm_file_options` object.
[42] Fix | Delete
*/
[43] Fix | Delete
struct fstrm_file_options *
[44] Fix | Delete
fstrm_file_options_init(void);
[45] Fix | Delete
[46] Fix | Delete
/**
[47] Fix | Delete
* Destroy an `fstrm_file_options` object.
[48] Fix | Delete
*
[49] Fix | Delete
* \param fopt
[50] Fix | Delete
* Pointer to `fstrm_file_options` object.
[51] Fix | Delete
*/
[52] Fix | Delete
void
[53] Fix | Delete
fstrm_file_options_destroy(struct fstrm_file_options **fopt);
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* Set the `file_path` option. This is a filesystem path to a regular file to be
[57] Fix | Delete
* opened for reading or writing.
[58] Fix | Delete
*
[59] Fix | Delete
* \param fopt
[60] Fix | Delete
* `fstrm_file_options` object.
[61] Fix | Delete
* \param file_path
[62] Fix | Delete
* The filesystem path for a regular file.
[63] Fix | Delete
*/
[64] Fix | Delete
void
[65] Fix | Delete
fstrm_file_options_set_file_path(struct fstrm_file_options *fopt,
[66] Fix | Delete
const char *file_path);
[67] Fix | Delete
[68] Fix | Delete
/**
[69] Fix | Delete
* Open a file containing Frame Streams data for reading.
[70] Fix | Delete
*
[71] Fix | Delete
* \param fopt
[72] Fix | Delete
* `fstrm_file_options` object. Must be non-NULL, and have the `file_path`
[73] Fix | Delete
* option set.
[74] Fix | Delete
* \param ropt
[75] Fix | Delete
* `fstrm_reader_options` object. May be NULL, in which case default values
[76] Fix | Delete
* will be used.
[77] Fix | Delete
*
[78] Fix | Delete
* \return
[79] Fix | Delete
* `fstrm_reader` object.
[80] Fix | Delete
* \retval
[81] Fix | Delete
* NULL on failure.
[82] Fix | Delete
*/
[83] Fix | Delete
struct fstrm_reader *
[84] Fix | Delete
fstrm_file_reader_init(const struct fstrm_file_options *fopt,
[85] Fix | Delete
const struct fstrm_reader_options *ropt);
[86] Fix | Delete
[87] Fix | Delete
/**
[88] Fix | Delete
* Open a file for writing Frame Streams data. The file will be truncated if it
[89] Fix | Delete
* already exists.
[90] Fix | Delete
*
[91] Fix | Delete
* \param fopt
[92] Fix | Delete
* `fstrm_file_options` object. Must be non-NULL, and have the `file_path`
[93] Fix | Delete
* option set.
[94] Fix | Delete
* \param wopt
[95] Fix | Delete
* `fstrm_writer_options` object. May be NULL, in which case default values
[96] Fix | Delete
* will be used.
[97] Fix | Delete
*
[98] Fix | Delete
* \return
[99] Fix | Delete
* `fstrm_writer` object.
[100] Fix | Delete
* \retval
[101] Fix | Delete
* NULL on failure.
[102] Fix | Delete
*/
[103] Fix | Delete
struct fstrm_writer *
[104] Fix | Delete
fstrm_file_writer_init(const struct fstrm_file_options *fopt,
[105] Fix | Delete
const struct fstrm_writer_options *wopt);
[106] Fix | Delete
[107] Fix | Delete
/**@}*/
[108] Fix | Delete
[109] Fix | Delete
#endif /* FSTRM_FILE_H */
[110] Fix | Delete
[111] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function