all callbacks now have error as first argument

This commit is contained in:
Andrey Sidorov 2012-04-11 16:50:14 +10:00
parent e53a974668
commit 4a1964febb
3 changed files with 5 additions and 5 deletions

View file

@ -4,8 +4,8 @@
exports.requireExt = function(display, callback)
{
var X = display.client;
X.QueryExtension('BIG-REQUESTS', function(ext) {
X.QueryExtension('BIG-REQUESTS', function(err, ext) {
if (!ext.present)
callback(new Error('extension not available'));

View file

@ -18,7 +18,7 @@ exports.requireExt = function(display, callback)
}
var X = display.client;
X.QueryExtension('RENDER', function(ext) {
X.QueryExtension('RENDER', function(err, ext) {
if (!ext.present)
{
@ -366,7 +366,7 @@ exports.requireExt = function(display, callback)
X.pack_stream.flush();
}
ext.QueryPictFormat(function(formats) {
ext.QueryPictFormat(function(err, formats) {
for (var i=0; i < formats.formats.length; ++i) {
var f = formats.formats[i];
if (f[2] == 1 && f[10] == 1)

View file

@ -5,7 +5,7 @@ var x11 = require('..');
exports.requireExt = function(display, callback)
{
var X = display.client;
X.QueryExtension('XTEST', function(ext) {
X.QueryExtension('XTEST', function(err, ext) {
if (!ext.present)
callback(new Error('extension not available'));