1. 14 Dec, 2002 1 commit
    • gbazin's avatar
      · 215c1a85
      gbazin authored
      * src/misc/objects.c: implemented the FIND_CHILD mode for vlc_list_find().
         vlc_object_get() now increments the refcount of the object so you'll need to release
      the object at some point.
      * src/misc/variables.c, ALL: var_Change() with VLC_VAR_GETLIST now returns a vlc_value_t
      which points to a vlc_list_t.
      215c1a85
  2. 10 Dec, 2002 1 commit
    • gbazin's avatar
      · 05b378dd
      gbazin authored
      * ALL: fixed a f*ckage I introduced recently ;) var_Type() now returns 0 when the variable
      doesn't exist, but the rest of the code wasn't updated according to this new behaviour.
      * modules/audio_output/waveout.c: changed a few error messages into warning messages.
      05b378dd
  3. 08 Dec, 2002 1 commit
    • gbazin's avatar
      · 07541e2e
      gbazin authored
      * modules/gui/wxwindows/*: compilation fixes for wxX11 (it doesn't support drag and drop
      yet). Compilation fix for MacOSX as well (wxEntry() not declared).
      * src/misc/variables.c: added a FreeMutex() function.
      07541e2e
  4. 07 Dec, 2002 1 commit
    • gbazin's avatar
      · 0d62cd7d
      gbazin authored
      * ALL: a few updates to the variables API:
        - got rid of the VLC_VAR_COMMAND variable type and introduced the VLC_VAR_ISCOMMAND flag
      instead. This simplifies things and avoid the strange command variables behaviour. Command
      variables will now trigger their callback on var_Set() like any other variables (look in
      modules/control/rc/rc.c for an example).
        - Renamed the VLC_VAR_ISLIST flag into VLC_VAR_HASCHOICE.
        - Added a new VLC_VAR_VOID variable type. This can be useful in conjunction with
      VLC_VAR_ISCOMMAND for instance.
      0d62cd7d
  5. 06 Dec, 2002 1 commit
  6. 31 Oct, 2002 1 commit
  7. 29 Oct, 2002 2 commits
  8. 28 Oct, 2002 2 commits
  9. 17 Oct, 2002 1 commit
    • Sam Hocevar's avatar
      * ./src/misc/variables.c: callback loops are now detected; this means you · ce7d29b2
      Sam Hocevar authored
          can now use var_* functions from within your callback, they can even
          trigger callback themselves, to any level. The main restriction is that
          you shouldn't meddle with a variable that is already being triggered by
          the current thread (other threads will just wait).
        * ./src/misc/objects.c: fixed a deadlock in the "tree" command.
        * ./modules/misc/testsuite/test4.c: added a "callback-test" command to the
          rc interface to test callback loop detection and concurrent triggers.
      ce7d29b2
  10. 16 Oct, 2002 2 commits
  11. 15 Oct, 2002 2 commits
  12. 14 Oct, 2002 2 commits
    • Sam Hocevar's avatar
      * ./modules/misc/testsuite/test4.c: made the 4th test less CPU intensive · 2f278849
      Sam Hocevar authored
          by making the spawned threads wait a bit longer.
        * ./src/misc/variables.c: added a usage count to the variables; trying to
          create a variable with the same name only increments its refcount.
      2f278849
    • Sam Hocevar's avatar
      * ./include/vlc/vlc.h, ./src/libvlc.c: added VLC_Error() to the libvlc API. · bf7985b7
      Sam Hocevar authored
        * ./include/main.h: removed p_vlc->i_status because it was not sufficient
          to represent all the possible states of p_vlc; each part should be tested
          separately upon destruction.
        * ./src/misc/objects.c: fixed a signed/unsigned bug that prevented creation
          of VLC_OBJECT_GENERIC objects.
      
        * ./src/misc/variables.c: added the VLC_VAR_COMMAND type which is simply a
          variable that stores a function pointer, and calls it when var_Get is
          called for it. The function argument is taken in val.psz_string.
        * ./src/misc/objects.c: vlc_dumpstructure and vlc_liststructure are no longer
          exported to the rest of the program; instead, they're VLC_VAR_COMMAND vars
          ("tree" and "list").
        * ./modules/control/rc/rc.c: moved a few commands to VLC_VAR_COMMAND vars.
      bf7985b7
  13. 11 Oct, 2002 1 commit