Changeset 248

Show
Ignore:
Timestamp:
06/05/06 07:32:01 (16 years ago)
Author:
pieterpalmers
Message:

- add API version check

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libfreebob-2.0/libfreebob/freebob.h

    r199 r248  
    3131#define FREEBOB_BOUNCE_SERVER_GETXMLDESCRIPTION_CMD 
    3232#define AVC1394_SUBUNIT_TYPE_FREEBOB_BOUNCE_SERVER      0x0D 
     33 
     34#define FREEBOB_API_VERSION 2 
    3335 
    3436enum freebob_direction { 
     
    168170freebob_get_version(); 
    169171 
     172const int 
     173freebob_get_api_version(); 
     174 
    170175/* various function */ 
    171176 
  • branches/libfreebob-2.0/src/freebob.cpp

    r242 r248  
    6565} 
    6666 
     67const int 
     68freebob_get_api_version() { 
     69    return FREEBOB_API_VERSION; 
     70} 
     71 
    6772freebob_handle_t 
    6873freebob_new_handle( int port )