Permalink
Browse files

Stale changes

  • Loading branch information...
antialize committed Oct 2, 2011
1 parent 919699d commit e9c8f52b019e3d06195a3eee14bc0116caed93ec
Showing with 8 additions and 5 deletions.
  1. +1 −0 examples/pdf_c_api.c
  2. +5 −1 src/lib/reflect.cc
  3. +2 −4 src/lib/reflect.hh
View
@@ -64,6 +64,7 @@ int main() {
/* We want the result to be storred in the file called test.pdf */
wkhtmltopdf_set_global_setting(gs, "out", "test.pdf");
+ wkhtmltopdf_set_global_setting(gs, "load.cookieJar", "myjar.jar");
/*
* Create a input object settings object that is used to store settings
* related to a input object, note again that control of this object is parsed to
View
@@ -1,7 +1,7 @@
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
// vi:set ts=4 sts=4 sw=4 noet :
//
-// Copyright 2010 wkhtmltopdf authors
+// Copyright 2010, 2011 wkhtmltopdf authors
//
// This file is part of wkhtmltopdf.
//
@@ -55,6 +55,10 @@ ReflectClass::~ReflectClass() {
delete i.value();
}
+ReflectImpl<LoadGlobal>::ReflectImpl(LoadGlobal & c) {
+ WKHTMLTOPDF_REFLECT(cookieJar);
+}
+
ReflectImpl<LoadPage>::ReflectImpl(LoadPage & c) {
WKHTMLTOPDF_REFLECT(username);
WKHTMLTOPDF_REFLECT(password);
View
@@ -1,7 +1,7 @@
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
// vi:set ts=4 sts=4 sw=4 noet :
//
-// Copyright 2010 wkhtmltopdf authors
+// Copyright 2010, 2011 wkhtmltopdf authors
//
// This file is part of wkhtmltopdf.
//
@@ -213,9 +213,7 @@ struct DLL_LOCAL ReflectImpl<PostItem>: public ReflectClass {
template <>
struct DLL_LOCAL ReflectImpl<LoadGlobal>: public ReflectClass {
- ReflectImpl(LoadGlobal & c) {
- WKHTMLTOPDF_REFLECT(cookieJar);
- };
+ ReflectImpl(LoadGlobal & c);
};

0 comments on commit e9c8f52

Please sign in to comment.