From 53aefa845cd85815781a1d9e06752ba930eaf1c0 Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 29 Dec 2009 13:45:54 +0000 Subject: Added shutdown_init() fonction pointer and related data --- xine_frontend.h | 4 +++- xine_frontend_internal.h | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/xine_frontend.h b/xine_frontend.h index f588dc04..2deb4e1e 100644 --- a/xine_frontend.h +++ b/xine_frontend.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.h,v 1.19 2009-05-31 16:51:25 phintuka Exp $ + * $Id: xine_frontend.h,v 1.20 2009-12-29 13:45:54 phintuka Exp $ * */ @@ -92,6 +92,8 @@ struct frontend_s { void (*xine_close)(frontend_t*); void (*xine_exit)(frontend_t*); + void (*shutdown_init)(frontend_t*, const char *cmd, int timeout); + /* Execution control */ int (*fe_run)(frontend_t*); void (*fe_interrupt)(frontend_t*); diff --git a/xine_frontend_internal.h b/xine_frontend_internal.h index 7409c867..4be606ba 100644 --- a/xine_frontend_internal.h +++ b/xine_frontend_internal.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_internal.h,v 1.5 2008-11-14 23:31:37 phintuka Exp $ + * $Id: xine_frontend_internal.h,v 1.6 2009-12-29 13:45:54 phintuka Exp $ * */ @@ -82,6 +82,9 @@ typedef struct fe_s { uint8_t playback_finished : 1; uint8_t slave_playback_finished : 1; + char *shutdown_cmd; + int shutdown_timeout; + time_t shutdown_time; } fe_t; /* setup function pointers */ -- cgit v1.2.3