diff options
| author | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
| commit | cd3520a41df21d80a9d894c58af2daba23c8dd24 (patch) | |
| tree | 945eaef322c65471833954ddce161a7a913ee3c8 /src/dbusbind.c | |
| parent | 7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff) | |
| download | emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.zip | |
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 144 |
1 files changed, 39 insertions, 105 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index 302b93146fd..4828f4e968d 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -2189,142 +2189,76 @@ void | |||
| 2189 | syms_of_dbusbind (void) | 2189 | syms_of_dbusbind (void) |
| 2190 | { | 2190 | { |
| 2191 | 2191 | ||
| 2192 | Qdbus_init_bus = intern_c_string ("dbus-init-bus"); | 2192 | DEFSYM (Qdbus_init_bus, "dbus-init-bus"); |
| 2193 | staticpro (&Qdbus_init_bus); | ||
| 2194 | defsubr (&Sdbus_init_bus); | 2193 | defsubr (&Sdbus_init_bus); |
| 2195 | 2194 | ||
| 2196 | Qdbus_close_bus = intern_c_string ("dbus-close-bus"); | 2195 | DEFSYM (Qdbus_close_bus, "dbus-close-bus"); |
| 2197 | staticpro (&Qdbus_close_bus); | ||
| 2198 | defsubr (&Sdbus_close_bus); | 2196 | defsubr (&Sdbus_close_bus); |
| 2199 | 2197 | ||
| 2200 | Qdbus_get_unique_name = intern_c_string ("dbus-get-unique-name"); | 2198 | DEFSYM (Qdbus_get_unique_name, "dbus-get-unique-name"); |
| 2201 | staticpro (&Qdbus_get_unique_name); | ||
| 2202 | defsubr (&Sdbus_get_unique_name); | 2199 | defsubr (&Sdbus_get_unique_name); |
| 2203 | 2200 | ||
| 2204 | Qdbus_call_method = intern_c_string ("dbus-call-method"); | 2201 | DEFSYM (Qdbus_call_method, "dbus-call-method"); |
| 2205 | staticpro (&Qdbus_call_method); | ||
| 2206 | defsubr (&Sdbus_call_method); | 2202 | defsubr (&Sdbus_call_method); |
| 2207 | 2203 | ||
| 2208 | Qdbus_call_method_asynchronously | 2204 | DEFSYM (Qdbus_call_method_asynchronously, "dbus-call-method-asynchronously"); |
| 2209 | = intern_c_string ("dbus-call-method-asynchronously"); | ||
| 2210 | staticpro (&Qdbus_call_method_asynchronously); | ||
| 2211 | defsubr (&Sdbus_call_method_asynchronously); | 2205 | defsubr (&Sdbus_call_method_asynchronously); |
| 2212 | 2206 | ||
| 2213 | Qdbus_method_return_internal | 2207 | DEFSYM (Qdbus_method_return_internal, "dbus-method-return-internal"); |
| 2214 | = intern_c_string ("dbus-method-return-internal"); | ||
| 2215 | staticpro (&Qdbus_method_return_internal); | ||
| 2216 | defsubr (&Sdbus_method_return_internal); | 2208 | defsubr (&Sdbus_method_return_internal); |
| 2217 | 2209 | ||
| 2218 | Qdbus_method_error_internal = intern_c_string ("dbus-method-error-internal"); | 2210 | DEFSYM (Qdbus_method_error_internal, "dbus-method-error-internal"); |
| 2219 | staticpro (&Qdbus_method_error_internal); | ||
| 2220 | defsubr (&Sdbus_method_error_internal); | 2211 | defsubr (&Sdbus_method_error_internal); |
| 2221 | 2212 | ||
| 2222 | Qdbus_send_signal = intern_c_string ("dbus-send-signal"); | 2213 | DEFSYM (Qdbus_send_signal, "dbus-send-signal"); |
| 2223 | staticpro (&Qdbus_send_signal); | ||
| 2224 | defsubr (&Sdbus_send_signal); | 2214 | defsubr (&Sdbus_send_signal); |
| 2225 | 2215 | ||
| 2226 | Qdbus_register_service = intern_c_string ("dbus-register-service"); | 2216 | DEFSYM (Qdbus_register_service, "dbus-register-service"); |
| 2227 | staticpro (&Qdbus_register_service); | ||
| 2228 | defsubr (&Sdbus_register_service); | 2217 | defsubr (&Sdbus_register_service); |
| 2229 | 2218 | ||
| 2230 | Qdbus_register_signal = intern_c_string ("dbus-register-signal"); | 2219 | DEFSYM (Qdbus_register_signal, "dbus-register-signal"); |
| 2231 | staticpro (&Qdbus_register_signal); | ||
| 2232 | defsubr (&Sdbus_register_signal); | 2220 | defsubr (&Sdbus_register_signal); |
| 2233 | 2221 | ||
| 2234 | Qdbus_register_method = intern_c_string ("dbus-register-method"); | 2222 | DEFSYM (Qdbus_register_method, "dbus-register-method"); |
| 2235 | staticpro (&Qdbus_register_method); | ||
| 2236 | defsubr (&Sdbus_register_method); | 2223 | defsubr (&Sdbus_register_method); |
| 2237 | 2224 | ||
| 2238 | Qdbus_error = intern_c_string ("dbus-error"); | 2225 | DEFSYM (Qdbus_error, "dbus-error"); |
| 2239 | staticpro (&Qdbus_error); | ||
| 2240 | Fput (Qdbus_error, Qerror_conditions, | 2226 | Fput (Qdbus_error, Qerror_conditions, |
| 2241 | list2 (Qdbus_error, Qerror)); | 2227 | list2 (Qdbus_error, Qerror)); |
| 2242 | Fput (Qdbus_error, Qerror_message, | 2228 | Fput (Qdbus_error, Qerror_message, |
| 2243 | make_pure_c_string ("D-Bus error")); | 2229 | make_pure_c_string ("D-Bus error")); |
| 2244 | 2230 | ||
| 2245 | QCdbus_system_bus = intern_c_string (":system"); | 2231 | DEFSYM (QCdbus_system_bus, ":system"); |
| 2246 | staticpro (&QCdbus_system_bus); | 2232 | DEFSYM (QCdbus_session_bus, ":session"); |
| 2247 | 2233 | DEFSYM (QCdbus_request_name_allow_replacement, ":allow-replacement"); | |
| 2248 | QCdbus_session_bus = intern_c_string (":session"); | 2234 | DEFSYM (QCdbus_request_name_replace_existing, ":replace-existing"); |
| 2249 | staticpro (&QCdbus_session_bus); | 2235 | DEFSYM (QCdbus_request_name_do_not_queue, ":do-not-queue"); |
| 2250 | 2236 | DEFSYM (QCdbus_request_name_reply_primary_owner, ":primary-owner"); | |
| 2251 | QCdbus_request_name_allow_replacement | 2237 | DEFSYM (QCdbus_request_name_reply_exists, ":exists"); |
| 2252 | = intern_c_string (":allow-replacement"); | 2238 | DEFSYM (QCdbus_request_name_reply_in_queue, ":in-queue"); |
| 2253 | staticpro (&QCdbus_request_name_allow_replacement); | 2239 | DEFSYM (QCdbus_request_name_reply_already_owner, ":already-owner"); |
| 2254 | 2240 | DEFSYM (QCdbus_timeout, ":timeout"); | |
| 2255 | QCdbus_request_name_replace_existing = intern_c_string (":replace-existing"); | 2241 | DEFSYM (QCdbus_type_byte, ":byte"); |
| 2256 | staticpro (&QCdbus_request_name_replace_existing); | 2242 | DEFSYM (QCdbus_type_boolean, ":boolean"); |
| 2257 | 2243 | DEFSYM (QCdbus_type_int16, ":int16"); | |
| 2258 | QCdbus_request_name_do_not_queue = intern_c_string (":do-not-queue"); | 2244 | DEFSYM (QCdbus_type_uint16, ":uint16"); |
| 2259 | staticpro (&QCdbus_request_name_do_not_queue); | 2245 | DEFSYM (QCdbus_type_int32, ":int32"); |
| 2260 | 2246 | DEFSYM (QCdbus_type_uint32, ":uint32"); | |
| 2261 | QCdbus_request_name_reply_primary_owner = intern_c_string (":primary-owner"); | 2247 | DEFSYM (QCdbus_type_int64, ":int64"); |
| 2262 | staticpro (&QCdbus_request_name_reply_primary_owner); | 2248 | DEFSYM (QCdbus_type_uint64, ":uint64"); |
| 2263 | 2249 | DEFSYM (QCdbus_type_double, ":double"); | |
| 2264 | QCdbus_request_name_reply_exists = intern_c_string (":exists"); | 2250 | DEFSYM (QCdbus_type_string, ":string"); |
| 2265 | staticpro (&QCdbus_request_name_reply_exists); | 2251 | DEFSYM (QCdbus_type_object_path, ":object-path"); |
| 2266 | 2252 | DEFSYM (QCdbus_type_signature, ":signature"); | |
| 2267 | QCdbus_request_name_reply_in_queue = intern_c_string (":in-queue"); | ||
| 2268 | staticpro (&QCdbus_request_name_reply_in_queue); | ||
| 2269 | |||
| 2270 | QCdbus_request_name_reply_already_owner = intern_c_string (":already-owner"); | ||
| 2271 | staticpro (&QCdbus_request_name_reply_already_owner); | ||
| 2272 | |||
| 2273 | QCdbus_timeout = intern_c_string (":timeout"); | ||
| 2274 | staticpro (&QCdbus_timeout); | ||
| 2275 | |||
| 2276 | QCdbus_type_byte = intern_c_string (":byte"); | ||
| 2277 | staticpro (&QCdbus_type_byte); | ||
| 2278 | |||
| 2279 | QCdbus_type_boolean = intern_c_string (":boolean"); | ||
| 2280 | staticpro (&QCdbus_type_boolean); | ||
| 2281 | |||
| 2282 | QCdbus_type_int16 = intern_c_string (":int16"); | ||
| 2283 | staticpro (&QCdbus_type_int16); | ||
| 2284 | |||
| 2285 | QCdbus_type_uint16 = intern_c_string (":uint16"); | ||
| 2286 | staticpro (&QCdbus_type_uint16); | ||
| 2287 | |||
| 2288 | QCdbus_type_int32 = intern_c_string (":int32"); | ||
| 2289 | staticpro (&QCdbus_type_int32); | ||
| 2290 | |||
| 2291 | QCdbus_type_uint32 = intern_c_string (":uint32"); | ||
| 2292 | staticpro (&QCdbus_type_uint32); | ||
| 2293 | |||
| 2294 | QCdbus_type_int64 = intern_c_string (":int64"); | ||
| 2295 | staticpro (&QCdbus_type_int64); | ||
| 2296 | |||
| 2297 | QCdbus_type_uint64 = intern_c_string (":uint64"); | ||
| 2298 | staticpro (&QCdbus_type_uint64); | ||
| 2299 | |||
| 2300 | QCdbus_type_double = intern_c_string (":double"); | ||
| 2301 | staticpro (&QCdbus_type_double); | ||
| 2302 | |||
| 2303 | QCdbus_type_string = intern_c_string (":string"); | ||
| 2304 | staticpro (&QCdbus_type_string); | ||
| 2305 | |||
| 2306 | QCdbus_type_object_path = intern_c_string (":object-path"); | ||
| 2307 | staticpro (&QCdbus_type_object_path); | ||
| 2308 | |||
| 2309 | QCdbus_type_signature = intern_c_string (":signature"); | ||
| 2310 | staticpro (&QCdbus_type_signature); | ||
| 2311 | 2253 | ||
| 2312 | #ifdef DBUS_TYPE_UNIX_FD | 2254 | #ifdef DBUS_TYPE_UNIX_FD |
| 2313 | QCdbus_type_unix_fd = intern_c_string (":unix-fd"); | 2255 | DEFSYM (QCdbus_type_unix_fd, ":unix-fd"); |
| 2314 | staticpro (&QCdbus_type_unix_fd); | ||
| 2315 | #endif | 2256 | #endif |
| 2316 | 2257 | ||
| 2317 | QCdbus_type_array = intern_c_string (":array"); | 2258 | DEFSYM (QCdbus_type_array, ":array"); |
| 2318 | staticpro (&QCdbus_type_array); | 2259 | DEFSYM (QCdbus_type_variant, ":variant"); |
| 2319 | 2260 | DEFSYM (QCdbus_type_struct, ":struct"); | |
| 2320 | QCdbus_type_variant = intern_c_string (":variant"); | 2261 | DEFSYM (QCdbus_type_dict_entry, ":dict-entry"); |
| 2321 | staticpro (&QCdbus_type_variant); | ||
| 2322 | |||
| 2323 | QCdbus_type_struct = intern_c_string (":struct"); | ||
| 2324 | staticpro (&QCdbus_type_struct); | ||
| 2325 | |||
| 2326 | QCdbus_type_dict_entry = intern_c_string (":dict-entry"); | ||
| 2327 | staticpro (&QCdbus_type_dict_entry); | ||
| 2328 | 2262 | ||
| 2329 | DEFVAR_LISP ("dbus-registered-buses", | 2263 | DEFVAR_LISP ("dbus-registered-buses", |
| 2330 | Vdbus_registered_buses, | 2264 | Vdbus_registered_buses, |