Skip to content

Commit

Permalink
Stale changes
Browse files Browse the repository at this point in the history
  • Loading branch information
antialize committed Oct 2, 2011
1 parent 919699d commit e9c8f52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/pdf_c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/lib/reflect.cc
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 2 additions & 4 deletions src/lib/reflect.hh
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down Expand Up @@ -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);
};


Expand Down

0 comments on commit e9c8f52

Please sign in to comment.