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

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

#ifndef GITOBJECT_H
#define GITOBJECT_H

#include 
#include 
#include 

#include "git2.h"

using namespace node;
using namespace v8;

class GitObject : public ObjectWrap {
  public:

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

    git_object *GetValue();

    static Handle New(void *raw);

  private:
    GitObject(git_object *raw);
    ~GitObject();

    static Handle New(const Arguments& args);


    static Handle Oid(const Arguments& args);
    static Handle Type(const Arguments& args);
    static Handle Peel(const Arguments& args);
    static void PeelWork(uv_work_t* req);
    static void PeelAfterWork(uv_work_t* req);

    struct PeelBaton {
      uv_work_t request;
      int error_code;
      const git_error* error;
      git_object * peeled;
      Persistent objectReference;
      const git_object * object;
      Persistent target_typeReference;
      git_otype target_type;
      Persistent callback;
    };
    git_object *raw;
};

#endif

Web Proxy Viewer  |  New URL  |  Original Page