/*
- * cam.h -
+ * cam.h
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
/*
* camapplication.h - GStreamer CAM (EN50221) Application Layer
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
void _cam_al_application_init (CamALApplication *application);
void _cam_al_application_destroy (CamALApplication *application);
-CamReturn cam_al_application_write (CamALApplication *application,
+CamReturn cam_al_application_write (CamALApplication *application,
CamSLSession *session, guint tag, guint8 *buffer,
guint buffer_size, guint body_length);
#endif /* CAM_APPLICATION_LAYER_H */
/*
* camapplicationinfo.h - CAM (EN50221) Application Info resource
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
/*
* camconditionalaccess.h - CAM (EN50221) Conditional Access resource
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
/*
* camdevice.h - GStreamer hardware CAM interface
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
/*
* camresourcemanager.h - GStreamer CAM (EN50221) Resource Manager
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
/*
* camsession.h - GStreamer CAM (EN50221) Session Layer
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
struct _CamSL
{
CamTL *tl;
-
+
GHashTable *sessions;
guint session_ids;
-
+
/* callbacks */
CamReturn (*open_session_request) (CamSL *sl, CamSLSession *session,
CamSLResourceStatus *status);
CamReturn (*session_closed) (CamSL *sl, CamSLSession *session);
CamReturn (*session_data) (CamSL *sl, CamSLSession *session,
guint8 *data, guint length);
-
+
gpointer user_data;
};
{
CamSL *sl;
CamTLConnection *connection;
-
+
guint resource_id;
guint16 session_nb;
-
+
CamSLSessionState state;
gpointer user_data;
CamReturn cam_sl_create_session (CamSL *sl, CamTLConnection *connection,
guint resource_id, CamSLSession **session);
-CamReturn cam_sl_session_close (CamSLSession *session);
+CamReturn cam_sl_session_close (CamSLSession *session);
void cam_sl_calc_buffer_size (CamSL *sl,
guint body_length, guint *buffer_size, guint *offset);
/*
* camswclient.h - GStreamer softcam client
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
/*
* camtransport.h - GStreamer CAM (EN50221) transport layer
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*
guint connection_ids;
GHashTable *connections;
-
+
guint expected_tpdus;
-
+
/* buffer containing module data */
guint8 buffer [HOST_BUFFER_SIZE];
/* number of bytes written in the buffer */
guint8 *body;
/* length of the body part */
guint body_length;
-
+
/* callbacks */
void (*request_connection) (CamTL *tl, CamTLConnection *connection);
void (*connection_created) (CamTL *tl, CamTLConnection *connection);
void (*connection_deleted) (CamTL *tl, CamTLConnection *connection);
CamReturn (*connection_data) (CamTL *tl, CamTLConnection *connection,
guint8 *data, guint length);
-
+
/* used by the upper layer to extend this layer */
gpointer user_data;
};
/*
* camutils.h - GStreamer CAM (EN50221) support
* Copyright (C) 2007 Alessandro Decina
- *
+ *
* Authors:
* Alessandro Decina <alessandro@nnva.org>
*