mirror of
https://github.com/danbulant/node-x11
synced 2026-05-21 05:19:14 +00:00
all callbacks now have error as first argument
This commit is contained in:
parent
e53a974668
commit
4a1964febb
3 changed files with 5 additions and 5 deletions
|
|
@ -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'));
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue