struct pending_pkt *p;
gboolean ret;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
if (obex == NULL || pkt == NULL) {
g_set_error(err, G_OBEX_ERROR, G_OBEX_ERROR_INVALID_ARGS,
"Invalid arguments");
struct pending_pkt *p;
static guint id = 1;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
if (obex->conn_id == CONNID_INVALID)
goto create_pending;
void g_obex_suspend(GObex *obex)
{
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
if (obex->write_source > 0) {
g_source_remove(obex->write_source);
obex->write_source = 0;
void g_obex_resume(GObex *obex)
{
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
obex->suspended = FALSE;
if (g_queue_get_length(obex->tx_queue) > 0 || obex->tx_data > 0)
gobex_debug = G_OBEX_DEBUG_NONE;
}
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "");
+
if (io == NULL)
return NULL;
g_atomic_int_inc(&obex->ref_count);
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "ref %u", obex->ref_count);
+
return obex;
}
last_ref = g_atomic_int_dec_and_test(&obex->ref_count);
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "ref %u", obex->ref_count);
+
if (!last_ref)
return;
struct connect_data data;
va_list args;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "");
+
va_start(args, first_hdr_id);
req = g_obex_packet_new_valist(G_OBEX_OP_CONNECT, TRUE,
first_hdr_id, args);
GObexPacket *req;
struct setpath_data data;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
req = g_obex_packet_new(G_OBEX_OP_SETPATH, TRUE, G_OBEX_HDR_INVALID);
memset(&data, 0, sizeof(data));
GObexPacket *req;
struct setpath_data data;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
req = g_obex_packet_new(G_OBEX_OP_SETPATH, TRUE, G_OBEX_HDR_NAME, path,
G_OBEX_HDR_INVALID);
{
GObexPacket *req;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
req = g_obex_packet_new(G_OBEX_OP_PUT, TRUE, G_OBEX_HDR_NAME, name,
G_OBEX_HDR_INVALID);
{
GObexPacket *req;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
req = g_obex_packet_new(G_OBEX_OP_ACTION, TRUE,
G_OBEX_HDR_ACTION, G_OBEX_ACTION_COPY,
G_OBEX_HDR_NAME, name,
{
GObexPacket *req;
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "conn %u", obex->conn_id);
+
req = g_obex_packet_new(G_OBEX_OP_ACTION, TRUE,
G_OBEX_HDR_ACTION, G_OBEX_ACTION_MOVE,
G_OBEX_HDR_NAME, name,