|
GW OBEX Error Codes |
The error codes returned by many of the functions refer either to an OBEX Protocol error or to a GW OBEX error. If the error code is less that 256, it refers to an OBEX error, othervice it refers to a GW_OBEX_ERROR_* error.
|
#define | GW_OBEX_ERROR_DISCONNECT 256 |
#define | GW_OBEX_ERROR_ABORT 257 |
#define | GW_OBEX_ERROR_INTERNAL 258 |
#define | GW_OBEX_ERROR_NO_SERVICE 259 |
#define | GW_OBEX_ERROR_CONNECT_FAILED 260 |
#define | GW_OBEX_ERROR_TIMEOUT 261 |
#define | GW_OBEX_ERROR_INVALID_DATA 262 |
#define | GW_OBEX_ERROR_INVALID_PARAMS 263 |
#define | GW_OBEX_ERROR_LOCAL_ACCESS 264 |
Defines |
#define | GW_OBEX_UNKNOWN_LENGTH -1 |
#define | OBEX_FTP_UUID "\xF9\xEC\x7B\xC4\x95\x3C\x11\xD2\x98\x4E\x52\x54\x00\xDC\x9E\x09" |
#define | OBEX_FTP_UUID_LEN 16 |
Typedefs |
typedef gw_obex | GwObex |
typedef void(* | gw_obex_disconnect_cb_t )(GwObex *ctx, gpointer data) |
typedef void(* | gw_obex_progress_cb_t )(GwObex *ctx, gint obex_cmd, gint current, gint target, gpointer data) |
typedef gboolean(* | gw_obex_cancel_cb_t )(gpointer data) |
Functions |
GwObex * | gw_obex_setup_dev (const gchar *device, const gchar *uuid, gint uuid_len, GMainContext *context, gint *error) |
GwObex * | gw_obex_setup_fd (int fd, const gchar *uuid, gint uuid_len, GMainContext *context, gint *error) |
void | gw_obex_close (GwObex *ctx) |
gboolean | gw_obex_get_capability (GwObex *ctx, gchar **cap, gint *cap_len, gint *error) |
gboolean | gw_obex_get_type (GwObex *ctx, const gchar *type, gchar **buf, gint *buf_len, gint *error) |
void | gw_obex_set_disconnect_callback (GwObex *ctx, gw_obex_disconnect_cb_t callback, gpointer data) |
void | gw_obex_set_progress_callback (GwObex *ctx, gw_obex_progress_cb_t callback, gpointer data) |
void | gw_obex_set_cancel_callback (GwObex *ctx, gw_obex_cancel_cb_t callback, gpointer data) |
gboolean | gw_obex_get_file (GwObex *ctx, const gchar *local, const gchar *remote, gint *error) |
gboolean | gw_obex_put_file (GwObex *ctx, const gchar *local, const gchar *remote, gint *error) |
gboolean | gw_obex_get_fd (GwObex *ctx, gint fd, const gchar *remote, gint *error) |
gboolean | gw_obex_put_fd (GwObex *ctx, gint fd, const gchar *remote, gint *error) |
gboolean | gw_obex_get_buf (GwObex *ctx, const gchar *remote, const gchar *type, gchar **buf, gint *buf_size, gint *error) |
gboolean | gw_obex_put_buf (GwObex *ctx, const gchar *remote, const gchar *type, const gchar *buf, gint buf_size, gint *error) |
gboolean | gw_obex_chdir (GwObex *ctx, const gchar *dir, gint *error) |
gboolean | gw_obex_mkdir (GwObex *ctx, const gchar *dir, gint *error) |
gboolean | gw_obex_read_dir (GwObex *ctx, const gchar *dir, gchar **buf, gint *buf_size, gint *error) |
gboolean | gw_obex_delete (GwObex *ctx, const gchar *name, gint *error) |
gboolean | gw_obex_move (GwObex *ctx, const gchar *src, const gchar *dst, gint *error) |
gboolean | gw_obex_copy (GwObex *ctx, const gchar *src, const gchar *dst, gint *error) |
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.