Changeset 5afb060fb5643133bc5122733a4f642d9e22ba63
- Timestamp:
- 05/12/05 16:51:39
(3 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1133797899 +0000
- git-parent:
[d93b664ac9c3d2077bf1cdc03abf2dcf2835e24e]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1133797899 +0000
- Message:
Very beginning of the interaction framework (Refs:#27)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8acc19a |
r5afb060 |
|
| 394 | 394 | src/interface/interface.c \ |
|---|
| 395 | 395 | src/interface/intf_eject.c \ |
|---|
| | 396 | src/interface/interaction.c \ |
|---|
| 396 | 397 | src/playlist/playlist.c \ |
|---|
| 397 | 398 | src/playlist/sort.c \ |
|---|
| r4900b27 |
r5afb060 |
|
| 30 | 30 | $line =~ /^Making\sclean\sin\s\./ || |
|---|
| 31 | 31 | $line =~ /^then\smv/ || |
|---|
| 32 | | $line =~ /make\s\sall-recursive/ ) |
|---|
| | 32 | $line =~ /make\s\sall-recursive/ || |
|---|
| | 33 | $line =~ s/^[A-z0-9-]*ar\s[A-z0-9]*\s([A-z0-9\-_\/\.]*)\s.*//g || |
|---|
| | 34 | $line =~ s/^rm\s\-f\s(.*)//g ) |
|---|
| 33 | 35 | {} |
|---|
| 34 | 36 | # Info |
|---|
| … | … | |
| 37 | 39 | $line =~ s/^.* (lib.*\.o)\s\.\/(.*)/ COMPILE : $2/g || |
|---|
| 38 | 40 | $line =~ s/^.* (lib.*\.o)\s`.*`(.*);\ \\/ COMPILE : $2/ || |
|---|
| 39 | | $line =~ s/^[A-z0-9-]*ar\s[A-z0-9]*\s([A-z0-9\-_\/\.]*)\s.*/ ARCHIVE : $1/g || |
|---|
| 40 | 41 | $line =~ s/^[A-z0-9-]*ranlib\s(.*)/ RANLIB : $1/g || |
|---|
| 41 | 42 | $line =~ s/^Making\sall\sin\s(.*)/MAKE : $1/g || |
|---|
| 42 | 43 | $line =~ s/^Making\sclean\sin\s(.*)/CLEAN : $1/g || |
|---|
| 43 | | $line =~ s/^rm\s\-f\s(.*)/ REMOVE : $1/g || |
|---|
| 44 | 44 | $line =~ s/.*\-o\s([^\s]*)\s.*/ BUILD : $1/g) |
|---|
| 45 | 45 | |
|---|
| rbfbe106 |
r5afb060 |
|
| 224 | 224 | PLAYLIST_SKIP, /**< arg1=int, res=can fail*/ |
|---|
| 225 | 225 | PLAYLIST_GOTO, /**< arg1=int res=can fail */ |
|---|
| 226 | | PLAYLIST_VIEWGOTO, /**< arg1=int res=can fail */ |
|---|
| | 226 | PLAYLIST_VIEWGOTO /**< arg1=int res=can fail */ |
|---|
| 227 | 227 | } playlist_command_t; |
|---|
| 228 | 228 | |
|---|
| … | … | |
| 252 | 252 | typedef struct intf_msg_t intf_msg_t; |
|---|
| 253 | 253 | typedef struct intf_channel_t intf_channel_t; |
|---|
| | 254 | typedef struct interaction_t interaction_t; |
|---|
| | 255 | typedef struct interaction_dialog_t interaction_dialog_t; |
|---|
| | 256 | typedef struct user_widget_t user_widget_t; |
|---|
| 254 | 257 | |
|---|
| 255 | 258 | /* Input */ |
|---|
| … | … | |
| 339 | 342 | typedef struct announce_handler_t announce_handler_t; |
|---|
| 340 | 343 | typedef struct sap_handler_t sap_handler_t; |
|---|
| 341 | | //typedef struct slp_session_t slp_session_t; |
|---|
| | 344 | /* typedef struct slp_session_t slp_session_t; */ |
|---|
| 342 | 345 | |
|---|
| 343 | 346 | /* Decoders */ |
|---|
| r7b885b9 |
r5afb060 |
|
| 23 | 23 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. |
|---|
| 24 | 24 | *****************************************************************************/ |
|---|
| | 25 | |
|---|
| 25 | 26 | |
|---|
| 26 | 27 | typedef struct intf_dialog_args_t intf_dialog_args_t; |
|---|
| … | … | |
| 64 | 65 | void ( *pf_show_dialog ) ( intf_thread_t *, int, int, |
|---|
| 65 | 66 | intf_dialog_args_t * ); |
|---|
| | 67 | |
|---|
| | 68 | /** Interaction stuff */ |
|---|
| | 69 | int i_last_id; |
|---|
| | 70 | int ( *pf_interact ) ( intf_thread_t *, interaction_dialog_t *, vlc_bool_t ); |
|---|
| 66 | 71 | |
|---|
| 67 | 72 | /** Video window callbacks */ |
|---|
| r28563cf |
r5afb060 |
|
| 214 | 214 | vlc_mutex_t gc_lock; /**< Lock to protect the garbage collection */ |
|---|
| 215 | 215 | |
|---|
| | 216 | // The following members are about user interaction |
|---|
| | 217 | // The playlist manages the user interaction to avoid creating another |
|---|
| | 218 | // thread |
|---|
| | 219 | vlc_bool_t b_manage_interaction; |
|---|
| | 220 | interaction_t *p_interaction; |
|---|
| | 221 | |
|---|
| 216 | 222 | /*@}*/ |
|---|
| 217 | 223 | }; |
|---|
| r5c8d564 |
r5afb060 |
|
| 2095 | 2095 | { |
|---|
| 2096 | 2096 | msg_Err( p_input, "no suitable access module for `%s'", psz_mrl ); |
|---|
| | 2097 | intf_UserFatal( p_input, "Unable to open '%s'", psz_mrl ); |
|---|
| 2097 | 2098 | goto error; |
|---|
| 2098 | 2099 | } |
|---|
| ra0c550b |
r5afb060 |
|
| 99 | 99 | p_intf->pf_release_window = NULL; |
|---|
| 100 | 100 | p_intf->pf_control_window = NULL; |
|---|
| | 101 | p_intf->pf_interact = NULL; |
|---|
| 101 | 102 | p_intf->b_play = VLC_FALSE; |
|---|
| 102 | 103 | |
|---|
| r5c8d564 |
r5afb060 |
|
| 33 | 33 | #include "vlc_playlist.h" |
|---|
| 34 | 34 | |
|---|
| | 35 | #include "vlc_interaction.h" |
|---|
| | 36 | |
|---|
| 35 | 37 | #define TITLE_CATEGORY N_( "By category" ) |
|---|
| 36 | 38 | #define TITLE_SIMPLE N_( "Manually added" ) |
|---|
| … | … | |
| 195 | 197 | } |
|---|
| 196 | 198 | |
|---|
| | 199 | // Preparse |
|---|
| 197 | 200 | p_playlist->p_preparse->i_waiting = 0; |
|---|
| 198 | 201 | p_playlist->p_preparse->pp_waiting = NULL; |
|---|
| | 202 | |
|---|
| | 203 | // Interaction |
|---|
| | 204 | p_playlist->b_manage_interaction = VLC_FALSE; |
|---|
| | 205 | p_playlist->p_interaction = NULL; |
|---|
| 199 | 206 | |
|---|
| 200 | 207 | vlc_object_attach( p_playlist->p_preparse, p_playlist ); |
|---|
| … | … | |
| 578 | 585 | while( !p_playlist->b_die ) |
|---|
| 579 | 586 | { |
|---|
| | 587 | if( p_playlist->b_manage_interaction ) |
|---|
| | 588 | { |
|---|
| | 589 | intf_InteractionManage( p_playlist ); |
|---|
| | 590 | } |
|---|
| | 591 | |
|---|
| 580 | 592 | vlc_mutex_lock( &p_playlist->object_lock ); |
|---|
| 581 | 593 | |
|---|