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 
20 namespace libebook
21 {
22 
23 typedef std::shared_ptr<css_stylesheet> CSSStylesheetPtr_t;
24 typedef std::shared_ptr<css_select_ctx> CSSSelectCtxPtr_t;
25 typedef std::shared_ptr<css_select_results> CSSSelectResultsPtr_t;
26 
27 typedef boost::intrusive_ptr<lwc_string> LWCStringPtr_t;
28 
29 CSSStylesheetPtr_t wrap(css_stylesheet *p);
30 CSSSelectCtxPtr_t wrap(css_select_ctx *p);
31 CSSSelectResultsPtr_t wrap(css_select_results *p);
32 
33 LWCStringPtr_t wrap(lwc_string *p);
34 
35 }
36 
37 void intrusive_ptr_add_ref(lwc_string *p);
38 void intrusive_ptr_release(lwc_string *p);
39 
40 #endif // LIBEBOOK_LIBCSS_H_INCLUDED
41 
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::shared_ptr< css_select_ctx > CSSSelectCtxPtr_t
Definition: libebook_libcss.h:24
std::shared_ptr< css_select_results > CSSSelectResultsPtr_t
Definition: libebook_libcss.h:25
void intrusive_ptr_release(lwc_string *p)
Definition: libebook_libcss.cpp:42
std::shared_ptr< css_stylesheet > CSSStylesheetPtr_t
Definition: libebook_libcss.h:23
Definition: EBOOKHTMLToken.h:116
HUBBUBParserPtr_t wrap(hubbub_parser *const p)
Definition: libebook_hubbub.cpp:15
Definition: BBeBCollector.cpp:18
boost::intrusive_ptr< lwc_string > LWCStringPtr_t
Definition: libebook_libcss.h:27
void intrusive_ptr_add_ref(lwc_string *p)
Definition: libebook_libcss.cpp:37

Generated for libe-book by doxygen 1.8.14