[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/nodegit/nodegit/v0.1.0/include/tree_builder.h [Back]  [Original]

/**
 * This code is auto-generated; unless you know what you're doing, do not modify!
 **/

#ifndef GITTREEBUILDER_H
#define GITTREEBUILDER_H

#include 
#include 
#include 

#include "git2.h"

using namespace node;
using namespace v8;

class GitTreeBuilder : public ObjectWrap {
  public:

    static Persistent constructor_template;
    static void Initialize (Handle target);

    git_treebuilder *GetValue();

    static Handle New(void *raw);

  private:
    GitTreeBuilder(git_treebuilder *raw);
    ~GitTreeBuilder();

    static Handle New(const Arguments& args);


    static Handle Create(const Arguments& args);
    static Handle Clear(const Arguments& args);
    static Handle Size(const Arguments& args);
    static Handle Get(const Arguments& args);
    static Handle Insert(const Arguments& args);
    static Handle GitTreebuilderRemove(const Arguments& args);
    static Handle Write(const Arguments& args);
    static void WriteWork(uv_work_t* req);
    static void WriteAfterWork(uv_work_t* req);

    struct WriteBaton {
      uv_work_t request;
      int error_code;
      const git_error* error;
      git_oid * id;
      Persistent repoReference;
      git_repository * repo;
      Persistent bldReference;
      git_treebuilder * bld;
      Persistent callback;
    };
    git_treebuilder *raw;
};

#endif

Web Proxy Viewer  |  New URL  |  Original Page