libebook_libcss.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/*
3 * This file is part of the libe-book project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef LIBEBOOK_LIBCSS_H_INCLUDED
11#define LIBEBOOK_LIBCSS_H_INCLUDED
12
13#include <memory>
14
15#include <boost/intrusive_ptr.hpp>
16
17#pragma GCC diagnostic ignored "-Wpedantic"
18#include <libcss/libcss.h>
19
20namespace libebook
21{
22
23typedef std::shared_ptr<css_stylesheet> CSSStylesheetPtr_t;
24typedef std::shared_ptr<css_select_ctx> CSSSelectCtxPtr_t;
25typedef std::shared_ptr<css_select_results> CSSSelectResultsPtr_t;
26
27typedef boost::intrusive_ptr<lwc_string> LWCStringPtr_t;
28
29CSSStylesheetPtr_t wrap(css_stylesheet *p);
30CSSSelectCtxPtr_t wrap(css_select_ctx *p);
31CSSSelectResultsPtr_t wrap(css_select_results *p);
32
33LWCStringPtr_t wrap(lwc_string *p);
34
35}
36
37void intrusive_ptr_add_ref(lwc_string *p);
38void intrusive_ptr_release(lwc_string *p);
39
40#endif // LIBEBOOK_LIBCSS_H_INCLUDED
41
42/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void intrusive_ptr_add_ref(lwc_string *p)
Definition libebook_libcss.cpp:37
void intrusive_ptr_release(lwc_string *p)
Definition libebook_libcss.cpp:42
Definition BBeBCollector.cpp:19
boost::intrusive_ptr< lwc_string > LWCStringPtr_t
Definition libebook_libcss.h:27
std::shared_ptr< css_select_ctx > CSSSelectCtxPtr_t
Definition libebook_libcss.h:24
HUBBUBParserPtr_t wrap(hubbub_parser *const p)
Definition libebook_hubbub.cpp:15
std::shared_ptr< css_select_results > CSSSelectResultsPtr_t
Definition libebook_libcss.h:25
std::shared_ptr< css_stylesheet > CSSStylesheetPtr_t
Definition libebook_libcss.h:23

Generated for libe-book by doxygen 1.9.7