Skip to content

Commit a08c9d9

Browse files
author
J. Gregg Thomason
committed
Mainly, change refs to augeas from libaugeas, because it seems to want to build an augeas and I dont know why.
1 parent dc10b67 commit a08c9d9

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

binding.gyp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
'targets': [
33
{
4-
'target_name': 'libaugeas',
4+
'target_name': 'augeas',
55
'sources': [ 'libaugeas.cc' ],
66
'include_dirs': [
77
'/usr/include/libxml2'

examples/async-read-etc-hosts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var aug = require('../build/Release/libaugeas');
1+
var aug = require('../build/Release/augeas');
22

33

44
/*

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
var libaugeas;
1313
try {
14-
libaugeas = require('./build/Release/libaugeas');
14+
libaugeas = require('./build/Release/augeas');
1515
} catch (e) {
16-
libaugeas = require('./libaugeas');
16+
libaugeas = require('./augeas');
1717
}
1818

1919
module.exports = libaugeas;

libaugeas.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <string>
1313

14-
#define BUILDING_NODE_EXTENSION
14+
#define BUILDING_NODE_EXTENSION 1
1515

1616
// node.h includes v8.h
1717
#include <node.h>
@@ -704,7 +704,7 @@ Handle<Value> LibAugeas::save(const Arguments& args)
704704
suv->aug = obj->m_aug;
705705
suv->callback = Persistent<Function>::New(
706706
Local<Function>::Cast(args[0]));
707-
uv_queue_work(uv_default_loop(), &suv->request, saveWork, saveAfter);
707+
uv_queue_work(uv_default_loop(), &suv->request, saveWork, (uv_after_work_cb) saveAfter);
708708
} else {
709709
ThrowException(Exception::Error(String::New("Callback function or nothing")));
710710
}
@@ -1088,7 +1088,7 @@ Handle<Value> createAugeas(const Arguments& args)
10881088
}
10891089

10901090
uv_queue_work(uv_default_loop(), &her->request,
1091-
createAugeasWork, createAugeasAfter);
1091+
createAugeasWork, (uv_after_work_cb) createAugeasAfter);
10921092

10931093
return scope.Close(Undefined());
10941094
} else { // sync
@@ -1119,5 +1119,5 @@ void init(Handle<Object> target)
11191119
FunctionTemplate::New(createAugeas)->GetFunction());
11201120
}
11211121

1122-
NODE_MODULE(libaugeas, init)
1122+
NODE_MODULE(augeas, init)
11231123

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name" : "augeas",
2+
"name" : "libaugeas",
33
"version" : "0.0.1",
44
"description" : "Bindings to augeas configuration tool",
55
"url" : "http://github.com/Nexenta/node-augeas",

0 commit comments

Comments
 (0)