@@ -41,162 +41,6 @@ module.exports.sessionBus = function(opts) {
4141 return createClient ( opts ) ;
4242} ;
4343
44- /**
45- * A flag for {@link MessageBus#requestName} to indicate this name allows other
46- * clients to replace it as the name owner on request.
47- *
48- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
49- * @constant DBUS_NAME_FLAG_ALLOW_REPLACEMENT
50- */
51- module . exports . DBUS_NAME_FLAG_ALLOW_REPLACEMENT = constants . DBUS_NAME_FLAG_ALLOW_REPLACEMENT ;
52-
53- /**
54- * A flag for {@link MessageBus#requestName} to indicate this request should
55- * replace an existing name if that name allows replacement.
56- *
57- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
58- * @constant DBUS_NAME_FLAG_REPLACE_EXISTING
59- */
60- module . exports . DBUS_NAME_FLAG_REPLACE_EXISTING = constants . DBUS_NAME_FLAG_REPLACE_EXISTING ;
61-
62- /**
63- * A flag for {@link MessageBus#requestName} to indicate this request should
64- * not enter the queue of clients requesting this name if it is taken.
65- *
66- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
67- * @constant DBUS_NAME_FLAG_DO_NOT_QUEUE
68- */
69- module . exports . DBUS_NAME_FLAG_DO_NOT_QUEUE = constants . DBUS_NAME_FLAG_DO_NOT_QUEUE ;
70-
71- /**
72- * An enum for the return value of {@link MessageBus#requestName} to indicate
73- * the caller is now the primary owner of the name, replacing any previous
74- * owner.
75- *
76- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
77- * @constant DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
78- */
79- module . exports . DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER = constants . DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER ;
80-
81- /**
82- * An enum for the return value of {@link MessageBus#requestName} to indicate
83- * the name already had an owner, `DBUS_NAME_FLAG_DO_NOT_QUEUE` was not
84- * specified, and either the current owner did not specify
85- * `DBUS_NAME_FLAG_ALLOW_REPLACEMENT` or the requesting application did not
86- * specify `DBUS_NAME_FLAG_REPLACE_EXISTING`.
87- *
88- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
89- * @constant DBUS_REQUEST_NAME_REPLY_IN_QUEUE
90- */
91- module . exports . DBUS_REQUEST_NAME_REPLY_IN_QUEUE = constants . DBUS_REQUEST_NAME_REPLY_IN_QUEUE ;
92-
93- /**
94- * An enum for the return value of {@link MessageBus#requestName} to indicate
95- * the name already has an owner, `DBUS_NAME_FLAG_DO_NOT_QUEUE` was specified,
96- * and either `DBUS_NAME_FLAG_ALLOW_REPLACEMENT` was not specified by the
97- * current owner, or `DBUS_NAME_FLAG_REPLACE_EXISTING` was not specified by the
98- * requesting application.
99- *
100- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
101- * @constant DBUS_REQUEST_NAME_REPLY_EXISTS
102- */
103- module . exports . DBUS_REQUEST_NAME_REPLY_EXISTS = constants . DBUS_REQUEST_NAME_REPLY_EXISTS ;
104-
105- /**
106- * An enum for the return value of {@link MessageBus#requestName} to indicate
107- * the application trying to request ownership of a name is already the owner
108- * of it.
109- *
110- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-request-name }
111- * @constant DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
112- */
113- module . exports . DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER = constants . DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER ;
114-
115- /**
116- * An enumn for the return value of {@link MessageBus#releaseName} to indicate
117- * the caller has released his claim on the given name. Either the caller was
118- * the primary owner of the name, and the name is now unused or taken by
119- * somebody waiting in the queue for the name, or the caller was waiting in the
120- * queue for the name and has now been removed from the queue.
121- *
122- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-release-name }
123- * @constant DBUS_RELEASE_NAME_REPLY_RELEASED
124- */
125- module . exports . DBUS_RELEASE_NAME_REPLY_RELEASED = constants . DBUS_RELEASE_NAME_REPLY_RELEASED ;
126-
127- /**
128- * An enumn for the return value of {@link MessageBus#releaseName} to indicate
129- * the given name does not exist on this bus.
130- *
131- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-release-name }
132- * @constant DBUS_RELEASE_NAME_REPLY_NON_EXISTENT
133- */
134- module . exports . DBUS_RELEASE_NAME_REPLY_NON_EXISTENT = constants . DBUS_RELEASE_NAME_REPLY_NON_EXISTENT ;
135-
136- /**
137- * An enumn for the return value of {@link MessageBus#releaseName} to indicate
138- * the caller was not the primary owner of this name, and was also not waiting
139- * in the queue to own this name.
140- *
141- * @see {@link https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-release-name }
142- * @constant DBUS_RELEASE_NAME_REPLY_NOT_OWNER
143- */
144- module . exports . DBUS_RELEASE_NAME_REPLY_NOT_OWNER = constants . DBUS_RELEASE_NAME_REPLY_NOT_OWNER ;
145-
146- /**
147- * An enum value for the {@link Message} `type` member to indicate the message
148- * is a method call.
149- *
150- * @see https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol
151- * @constant MESSAGE_TYPE_METHOD_CALL
152- */
153- module . exports . MESSAGE_TYPE_METHOD_CALL = constants . messageType . METHOD_CALL ;
154-
155- /**
156- * An enum value for the {@link Message} `type` member to indicate the message
157- * is a method return.
158- *
159- * @see https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol
160- * @constant MESSAGE_TYPE_METHOD_RETURN
161- */
162- module . exports . MESSAGE_TYPE_METHOD_RETURN = constants . messageType . METHOD_RETURN ;
163-
164- /**
165- * An enum value for the {@link Message} `type` member to indicate the message
166- * is a signal.
167- *
168- * @see https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol
169- * @constant MESSAGE_TYPE_SIGNAL
170- */
171- module . exports . MESSAGE_TYPE_SIGNAL = constants . messageType . SIGNAL ;
172-
173- /**
174- * An enum value for the {@link Message} `type` member to indicate the message
175- * is an error reply.
176- *
177- * @see https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol
178- * @constant MESSAGE_TYPE_ERROR
179- */
180- module . exports . MESSAGE_TYPE_ERROR = constants . messageType . ERROR ;
181-
182- /**
183- * A flag for the {@link Message} `flags` member to indicate no reply is
184- * expected from this message.
185- *
186- * @see https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol
187- * @constant MESSAGE_FLAG_NO_REPLY_EXPECTED
188- */
189- module . exports . MESSAGE_FLAG_NO_REPLY_EXPECTED = constants . flags . noReplyExpected ;
190-
191- /**
192- * A flag for the {@link Message} `flags` member to indicate this message
193- * should not autostart a service.
194- *
195- * @see https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol
196- * @constant MESSAGE_FLAG_NO_AUTO_START
197- */
198- module . exports . MESSAGE_FLAG_NO_AUTO_START = constants . flags . noAutoStart ;
199-
20044/**
20145 * Use JSBI as a polyfill for long integer types ('x' and 't') in the client
20246 * and the service. This is required for Node verisons that do not support the
@@ -208,6 +52,12 @@ module.exports.MESSAGE_FLAG_NO_AUTO_START = constants.flags.noAutoStart;
20852 */
20953module . exports . setBigIntCompat = require ( './lib/library-options' ) . setBigIntCompat
21054
55+ module . exports . NameFlag = constants . NameFlag ;
56+ module . exports . RequestNameReply = constants . RequestNameReply ;
57+ module . exports . ReleaseNameReply = constants . ReleaseNameReply ;
58+ module . exports . MessageType = constants . MessageType ;
59+ module . exports . MessageFlag = constants . MessageFlag ;
60+
21161module . exports . interface = iface ;
21262module . exports . Variant = Variant ;
21363module . exports . Message = Message ;
0 commit comments