1
// http.cpp: HyperText Transport Protocol handler for Cygnal, for Gnash.
3
// Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 3 of the License, or
8
// (at your option) any later version.
10
// This program 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
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#define __CQUEUE_H__ 1
24
#include <boost/cstdint.hpp>
25
#include <boost/thread/mutex.hpp>
26
#include <boost/date_time/gregorian/gregorian.hpp>
27
#include <boost/date_time/posix_time/posix_time.hpp>
42
// Push bytes on the FIFO
43
bool push(boost::uint8_t *data, int nbytes);
44
bool push(std::vector<boost::uint8_t> *data);
45
// Pop the first date element off the FIFO
46
std::vector<uint8_t> *pop();
47
// Peek at the first data element without removing it
48
std::vector<uint8_t> *peek();
49
// void memcpy(boost::uint8_t *data, size_t size,
50
// std::vector<boost::uint8_t> *ptr);
51
// void memcpy(std::vector<boost::uint8_t> *ptr,
52
// boost::uint8_t *data, size_t size);
53
size_t size() { return _queue.size(); };
54
// Dump internal data.
57
std::vector<std::vector<boost::uint8_t> *> _queue;
61
} // end of gnash namespace
63
#endif // end of __CQUEUE_H__
67
// indent-tabs-mode: t