Commit 019bd4d0 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Add function dvbpsi_HasDecoder(dvbpsi_t *handle)

The function dvbpsi_HasDecoder(dvbpsi_t *handle) returns 'true' when a decoder has been attached to this dvbpsi handle. If the handle is not valid or no decoder is attached, then it will return 'false'.
parent 360e93b0
......@@ -14,6 +14,7 @@
#include "config.h"
#include <stdio.h>
#include <stdbool.h>
#if defined(HAVE_INTTYPES_H)
#include <inttypes.h>
......
......@@ -5,6 +5,7 @@
#include "config.h"
#include <stdio.h>
#include <stdbool.h>
#if defined(HAVE_INTTYPES_H)
#include <inttypes.h>
......
......@@ -27,6 +27,7 @@
#include "config.h"
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
......@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_03.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_03.c,v 1.4 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_04.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_04.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_05.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_05.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_06.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_06.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_07.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_07.c,v 1.4 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_08.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_08.c,v 1.4 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_09.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_09.c,v 1.5 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_0a.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_0b.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_0b.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_0c.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_0c.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_0d.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_0d.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_0e.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_0e.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_0f.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_0f.c,v 1.3 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_42.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_42.c,v 1.1 2002/12/11 13:14:42 jobi Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -22,11 +22,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_43.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Johann Hanne
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_45.c
* Copyright (C) 2004-2010 VideoLAN
* Copyright (C) 2004-2011 VideoLAN
* $Id$
*
* Authors: Jean-Paul Saman <jpsaman@videolan.org>
......@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_47.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id: dr_47.c,v 1.1 2002/12/11 13:14:42 jobi Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -22,11 +22,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_48.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -22,11 +22,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_4d.c
* Copyright (C) 2005-2010 VideoLAN
* Copyright (C) 2005-2011 VideoLAN
* $Id: dr_4d.c,v 1.7 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_4e.c
* Copyright (C) 2005-2010 VideoLAN
* Copyright (C) 2005-2011 VideoLAN
* $Id: dr_4d.c,v 1.7 2003/07/25 20:20:40 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_52.c
* Copyright (C) 2005-2010 Andrew John Hughes
* Copyright (C) 2005-2011 Andrew John Hughes
*
* Authors: Andrew John Hughes <gnu_andrew@member.fsf.org>
*
......@@ -20,11 +20,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_55.c
* Copyright (C) 2004-2010 VideoLAN
* Copyright (C) 2004-2011 VideoLAN
* $Id: dr_55.c 89 2004-06-28 19:17:23Z gbazin $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_56.c
* Copyright (C) 2004-2010 VideoLAN
* Copyright (C) 2004-2011 VideoLAN
* $Id: dr_56.c 93 2004-10-19 19:17:49Z massiot $
*
* Authors: Derk-Jan Hartman <hartman at videolan dot org>
......@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_58.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Johann Hanne
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_59.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -22,11 +22,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_5a.c
* Copyright (C) 2001-2010 VideoLAN
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Johann Hanne
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_69.c
* Copyright (C) 2007-2010 VideoLAN
* Copyright (C) 2007-2011 VideoLAN
* $Id$
*
* Authors: Jiri Pinkava <master_up@post.cz>
......@@ -21,11 +21,11 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
/*****************************************************************************
* dr_8a.c
* Copyright (c) 2010 VideoLAN
* Copyright (c) 2010-2011 VideoLAN
* $Id$
*
* Authors: Jean-Paul Saman <jpsaman@videolan.org>
......@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#if defined(HAVE_INTTYPES_H)
......
......@@ -195,6 +195,17 @@ void dvbpsi_DeleteDecoder(dvbpsi_t *handle)
free(p_decoder);
}
/*****************************************************************************
* dvbpsi_HasDecoder
*****************************************************************************/
bool dvbpsi_HasDecoder(dvbpsi_t *p_dvbpsi)
{
if (p_dvbpsi && p_dvbpsi->p_private)
return true;
else
return false;
}
/*****************************************************************************
* dvbpsi_PushPacket
*****************************************************************************
......
......@@ -222,6 +222,21 @@ dvbpsi_decoder_t *dvbpsi_NewDecoder(dvbpsi_t *p_dvbpsi, dvbpsi_callback *callbac
*/
void dvbpsi_DeleteDecoder(dvbpsi_t *p_dvbpsi);
/*****************************************************************************
* dvbpsi_HasDecoder
*****************************************************************************/
/*!
* \fn bool dvbpsi_HasDecoder(dvbpsi_t *p_dvbpsi);
* \brief Determines if a decoder has been attached to dvbpsi_t handle
* \param p_dvbpsi handle to dvbpsi with attached decoder
* \return true when decoder is attached, else it will return false.
*
* Determines if a decoder is attached to this dvbpsi_t handle. When the dvbpsi
* handle is invalid the fuction will return false.
*/
bool dvbpsi_HasDecoder(dvbpsi_t *p_dvbpsi);
#ifdef __cplusplus
};
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment