return TRUE;
}
+gboolean g_obex_send_rsp(GObex *obex, guint8 rspcode, GError **err)
+{
+ GObexPacket *rsp;
+
+ rsp = g_obex_packet_new(rspcode, TRUE, G_OBEX_HDR_INVALID);
+
+ return g_obex_send(obex, rsp, err);
+}
+
void g_obex_set_disconnect_function(GObex *obex, GObexFunc func,
gpointer user_data)
{
gboolean g_obex_cancel_req(GObex *obex, guint req_id,
gboolean remove_callback);
+gboolean g_obex_send_rsp(GObex *obex, guint8 rspcode, GError **err);
+
void g_obex_set_disconnect_function(GObex *obex, GObexFunc func,
gpointer user_data);
gint g_obex_add_request_function(GObex *obex, guint8 opcode,
GObex *g_obex_ref(GObex *obex);
void g_obex_unref(GObex *obex);
-/* Higher level functions */
+/* High level client functions */
guint g_obex_connect(GObex *obex, GObexResponseFunc func, gpointer user_data,
GError **err, guint8 first_hdr_id, ...);
if (data->fd < 0) {
g_printerr("open(%s): %s\n", name, strerror(errno));
g_free(data);
+ g_obex_send_rsp(obex, G_OBEX_RSP_FORBIDDEN, NULL);
return;
}
if (data->fd < 0) {
g_printerr("open(%s): %s", name, strerror(errno));
g_free(data);
+ g_obex_send_rsp(obex, G_OBEX_RSP_FORBIDDEN, NULL);
return;
}