/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005-2006 Nokia Corporation.
 *
 * Contact: Kai Vehmanen <kai.vehmanen@nokia.com>
 *
 * * 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.1 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., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

/**@file ssc_media_fs.h Farsight RTP-plugin based implementation of 
 *                      ssc_media.h interface.
 *
 * @author Kai Vehmanen <Kai.Vehmanen@nokia.com>
 */

#ifndef HAVE_SSC_MEDIA_FARSIGHT_H
#define HAVE_SSC_MEDIA_FARSIGHT_H

#include <glib.h>
#include <glib-object.h>
#include <gst/gst.h>
#include <farsight/farsight.h>
#include <farsight/farsight-transport.h>

#include <unistd.h>
#include <netinet/in.h>

#include <sofia-sip/su.h>

#include "ssc_media.h"

G_BEGIN_DECLS

typedef struct _SscMediaFarsight        SscMediaFarsight;
typedef struct _SscMediaFarsightClass   SscMediaFarsightClass;

GType ssc_media_farsight_get_type(void);

/* TYPE MACROS */
#define SSC_MEDIA_FARSIGHT_TYPE \
  (ssc_media_farsight_get_type())
#define SSC_MEDIA_FARSIGHT(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST((obj), SSC_MEDIA_FARSIGHT_TYPE, SscMediaFarsight))
#define SSC_MEDIA_FARSIGHT_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST((klass), SSC_MEDIA_FARSIGHT_TYPE, SscMediaFarsightClass))
#define SSC_IS_MEDIA_FARSIGHT(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), SSC_MEDIA_FARSIGHT_TYPE))
#define SSC_IS_MEDIA_FARSIGHT_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE((klass), SSC_MEDIA_FARSIGHT_TYPE))
#define SSC_MEDIA_FARSIGHT_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), SSC_MEDIA_FARSIGHT_TYPE, SscMediaFarsightClass))


struct _SscMediaFarsightClass {
  SscMediaClass parent_class;
};

struct _SscMediaFarsight {
  SscMedia parent;
    
  /* scope/protected: 
   * ---------------- */

  FarsightSession *fs_session;
  FarsightStream *fs_stream;
  FarsightTransportInfo *fs_local_transport;
  FarsightTransportInfo *fs_remote_transport;
  gboolean      dispose_run;
};

#endif /* HAVE_SSC_MEDIA_FARSIGHT_H */
