// This is a generated file, modify: generate/templates/templates/struct_header.h #ifndef GITPUSHOPTIONS_H #define GITPUSHOPTIONS_H #include #include #include #include #include #include "async_baton.h" #include "callback_wrapper.h" #include "reference_counter.h" #include "nodegit_wrapper.h" extern "C" { #include } #include "../include/str_array_converter.h" #include "../include/remote_callbacks.h" #include "../include/proxy_options.h" #include "../include/strarray.h" using namespace node; using namespace v8; class GitPushOptions; struct GitPushOptionsTraits { typedef GitPushOptions cppClass; typedef git_push_options cType; static const bool isDuplicable = false; static void duplicate(git_push_options **dest, git_push_options *src) { Nan::ThrowError("duplicate called on GitPushOptions which cannot be duplicated"); } static const bool isSingleton = false; static const bool isFreeable = true; static void free(git_push_options *raw) { unsigned long referenceCount = 0; if (referenceCount == 0) { ::free(raw); // :: to avoid calling this free recursively } } }; class GitPushOptions : public NodeGitWrapper { // grant full access to base class friend class NodeGitWrapper; public: GitPushOptions(git_push_options* raw, bool selfFreeing, v8::Local owner = v8::Local()); static void InitializeComponent (v8::Local target); private: GitPushOptions(); ~GitPushOptions(); void ConstructFields(); static NAN_GETTER(GetVersion); static NAN_SETTER(SetVersion); static NAN_GETTER(GetPbParallelism); static NAN_SETTER(SetPbParallelism); Nan::Persistent callbacks; static NAN_GETTER(GetCallbacks); static NAN_SETTER(SetCallbacks); Nan::Persistent proxy_opts; static NAN_GETTER(GetProxyOpts); static NAN_SETTER(SetProxyOpts); Nan::Persistent custom_headers; static NAN_GETTER(GetCustomHeaders); static NAN_SETTER(SetCustomHeaders); }; #endif