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

Generated for libe-book by doxygen 1.8.8