Logo Search packages:      
Sourcecode: obexd version File versions  Download package

obex-priv.c File Reference


Detailed Description

Private functions for the GW OBEX Library

Author:
Johan Hedberg <johan.hedberg@nokia.com>
Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1, as published by the Free Software Foundation.

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.

Definition in file obex-priv.c.

#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <utime.h>
#include <fcntl.h>
#include <strings.h>
#include <glib.h>
#include <sys/socket.h>
#include <openobex/obex.h>
#include "log.h"
#include "gw-obex.h"
#include "utils.h"
#include "obex-xfer.h"
#include "obex-priv.h"

Go to the source code of this file.

Defines

#define MAX_TIMEOUTS   20
#define MAX_TIMEOUTS_FIRST   60

Functions

static gboolean file_is_dir (const char *filename)
static void get_non_body_headers (obex_t *handle, obex_object_t *object, struct gw_obex_xfer *xfer)
gboolean gw_obex_action_op (GwObex *ctx, const gchar *src, const gchar *dst, uint8_t action)
gboolean gw_obex_cb (GIOChannel *chan, GIOCondition cond, gpointer data)
gboolean gw_obex_connect (GwObex *ctx, const char *target, size_t target_len)
gboolean gw_obex_disconnect (GwObex *ctx)
gboolean gw_obex_get (GwObex *ctx, const gchar *local, const gchar *remote, const gchar *type, const guint8 *apparam, gint apparam_size, gchar **buf, gint *buf_size, int stream_fd, gboolean async)
void gw_obex_get_error (GwObex *ctx, gint *error)
gboolean gw_obex_put (GwObex *ctx, const gchar *local, const gchar *remote, const gchar *type, const guint8 *apparam, gint apparam_size, const gchar *buf, gint object_size, time_t object_time, int stream_fd, gboolean async)
static gboolean gw_obex_request_async (GwObex *ctx, obex_object_t *object)
static gboolean gw_obex_request_sync (GwObex *ctx, obex_object_t *object)
gboolean gw_obex_set_error (GwObex *ctx)
gboolean gw_obex_setpath (GwObex *ctx, const gchar *path, int flags)
gboolean gw_obex_transport_setup (int fd, obex_t **handle)
static void idle_callback (obex_t *handle, obex_object_t *object, int mode, int event, int obex_cmd, int obex_rsp)
GwObexmake_context (obex_t *handle)
static void obex_abort_done (GwObex *ctx, obex_object_t *object, int obex_cmd, int obex_rsp)
static void obex_connect_done (GwObex *ctx, obex_object_t *object, int obex_rsp)
static void obex_event_handler (obex_t *handle, obex_object_t *object, int mode, int event, int obex_cmd, int obex_rsp)
void obex_link_error (GwObex *ctx)
static void obex_readstream (GwObex *ctx, obex_object_t *object)
static void obex_request_done (GwObex *ctx, obex_object_t *object, int obex_cmd, int obex_rsp)
static void obex_writestream (GwObex *ctx, obex_object_t *object)
static void show_headers (obex_t *handle, obex_object_t *object)


Generated by  Doxygen 1.6.0   Back to index