X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ndmp-src%2Fndmpconnobj.h;h=f34577ba384e41819e56cc20b2edb672decc4688;hb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;hp=ff03751a16740677c648eeeb69a83daeb64d6f14;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/ndmp-src/ndmpconnobj.h b/ndmp-src/ndmpconnobj.h index ff03751..f34577b 100644 --- a/ndmp-src/ndmpconnobj.h +++ b/ndmp-src/ndmpconnobj.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. + * Copyright (c) 2009-2012 Zmanda, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published @@ -190,6 +190,11 @@ gboolean ndmp_connection_mover_listen( ndmp9_addr_type addr_type, DirectTCPAddr **addrs); +gboolean ndmp_connection_mover_connect( + NDMPConnection *self, + ndmp9_mover_mode mode, + DirectTCPAddr *addrs); + gboolean ndmp_connection_mover_abort( NDMPConnection *self); @@ -219,6 +224,20 @@ gboolean ndmp_connection_wait_for_notify( ndmp9_mover_pause_reason *mover_pause_reason, guint64 *mover_pause_seek_position); +/* Synchronous notification interface. This handles all types of notification, + * returning the result in the appropriate output parameter. */ +gboolean ndmp_connection_wait_for_notify_with_cond( + NDMPConnection *self, + /* NDMP_NOTIFY_DATA_HALTED */ + ndmp9_data_halt_reason *data_halt_reason, + /* NDMP_NOTIFY_MOVER_HALTED */ + ndmp9_mover_halt_reason *mover_halt_reason, + /* NDMP_NOTIFY_MOVER_PAUSED */ + ndmp9_mover_pause_reason *mover_pause_reason, + guint64 *mover_pause_seek_position, + GMutex *abort_mutex, + GCond *abort_cond); + /* * Constructor */