CVSROOT:        /cvs/gnome
Module name:    nautilus-cd-burner
Changes by:     mccann  05/03/15 19:20:22

Modified files:
        .              : ChangeLog burn-extension.c mapping-daemon.c 
                         mapping-method.c mapping-protocol.c 
                         mapping-protocol.h 

Log message:
2005-03-15  William Jon McCann  <[EMAIL PROTECTED]>

* mapping-protocol.c (data_available): New function adapted from
gamin_data_available() that reports if data is available for
reading on the socket.
(write_all, read_all): Only return success/fail not bytes.
(encode_int): Don't do g_htonl in-place.
(encode_pointer, decode_pointer): New functions to pass pointer
values.  Assumes a local socket is used.
(encode_request, decode_request): Add userdata pointer to request.
(encode_handshake, decode_handshake): New functions used to send a
signature that leads each packet sent over the socket.  With the
current implementation this is barely a sanity check that listener
and sender are in sync.
(encode_reply, decode_reply): Use "handshake".
(decode_reply_error): New function to construct error message.
(encode_monitor_event, decode_monitor_event)
(destroy_monitor_event): New functions for handling new monitor
event packets.

* mapping-method.c: Use G_LOCK_DEFINE_STATIC.
(debug_init, debug_print): Add ability to print debug information
to a file.
(get_path_from_uri, get_uri): Add g_return_val_if_fail.
(request_op_unlocked): New function that does what request_op used
to do but without the mutex_lock.
(monitor_event_pending): New function to report if a monitor event
is available and read it if it is.
(monitor_do_iter_unlocked): New function to process available
monitor events.
(request_op): Wrap request_op_unlocked and process available
events before sending request to client in order to avoid a
deadlock.  Add userdata argument.
(remove_file_helper, do_open, do_create, do_open_directory)
(do_get_file_info, do_make_directory, do_remove_directory)
(do_move, do_set_file_info, do_truncate, do_create_symbolic_link):
Use NULL userdata in request_op call.
(monitor_callback): New function as IO watch callback for monitor
events.
(monitor_stop_unlocked): New function to stop the IO watch.
(monitor_setup): New function to create IO watch for monitor
events.
(do_monitor_add): New function to create a file monitor in the
daemon.
(do_monitor_cancel): New function to remove a file monitor from
the daemon.
(do_forget_cache): New function to mark forget-cache method as
unsupported.
(vfs_module_init): Init debug if necessary.
(vfs_module_shutdown): Remove IO watch.

* mapping-daemon.c (debug_init, debug_print): Add ability to print
debug information to a file.
(subscription_free, subscription_ref, subscription_unref)
(subscription_cancel, subscription_get_path)
(subscription_send_event, actually_dispatch_event)
(dispatch_data_free, virtual_node_add_subscription)
(virtual_node_remove_subscription)
(virtual_node_subscription_event, subscription_new): New functions
to implement individual requests to monitor a file.
(get_backing_file, create_file): strdup path.
(create_dir, remove_dir, remove_file, create_file, create_link)
(move_file): Send events for each subscription.
(connection_add_subscription, connection_remove_subscription)
(connection_free, connection_ref, connection_unref)
(connection_new, connection_get_subscription, connection_add)
(connection_remove, connection_error): New functions to keep track
of each client connection and which subscription requests
originate from that client.
(monitor_add, monitor_cancel): New functions to add/remove
subscriptions.
(operation_string): New function to get a string description of
the requested operation for debugging.
(handle_request): Support monitoring.
(handle_new_client): Add support for connection.
(cleanup_timeout): Use length of list of connections.
(main): Init debug if necessary.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=nautilus-cd-burner&who=mccann&date=explicit&mindate=2005-03-15%2019:19&maxdate=2005-03-15%2019:21

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to