qbrb.h   qbrb.h 
skipping to change at line 24 skipping to change at line 24
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with libqb. If not, see <http://www.gnu.org/licenses/>. * along with libqb. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef QB_RB_DEFINED #ifndef QB_RB_DEFINED
#define QB_RB_DEFINED #define QB_RB_DEFINED
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>
/** /**
* @file qbrb.h * @file qbrb.h
* This implements a ring buffer that works in "chunks" not bytes. * This implements a ring buffer that works in "chunks" not bytes.
* So you write/read a complete chunk or not at all. * So you write/read a complete chunk or not at all.
* There are two types of ring buffer normal and overwrite. * There are two types of ring buffer normal and overwrite.
* Overwrite will reclaim the oldest chunks inorder to make way for new one s, * Overwrite will reclaim the oldest chunks inorder to make way for new one s,
* the normal version will refuse to write a new chunk if the ring buffer * the normal version will refuse to write a new chunk if the ring buffer
skipping to change at line 71 skipping to change at line 77
* goto try_write_again; * goto try_write_again;
* } * }
* } * }
* ... * ...
* qb_rb_close(rb); * qb_rb_close(rb);
* @endcode * @endcode
* *
* @author Angus Salkeld <asalkeld@redhat.com> * @author Angus Salkeld <asalkeld@redhat.com>
*/ */
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */
/** /**
* create a ring buffer (rather than open and existing one) * create a ring buffer (rather than open and existing one)
* @see qb_rb_open() * @see qb_rb_open()
*/ */
#define QB_RB_FLAG_CREATE 0x01 #define QB_RB_FLAG_CREATE 0x01
/** /**
* New calls to qb_rb_chunk_write() will call qb_rb_chunk_reclaim() * New calls to qb_rb_chunk_write() will call qb_rb_chunk_reclaim()
* if there is not enough space. * if there is not enough space.
* If this is not set then new writes will be refused. * If this is not set then new writes will be refused.
* @see qb_rb_open() * @see qb_rb_open()
 End of changes. 2 change blocks. 
6 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/