Changeset 196

Show
Ignore:
Timestamp:
03/23/09 21:48:45 (15 years ago)
Author:
bhilburn
Message:

Removing redundant functions in libvtcross

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/libvtcross.h

    r170 r196  
    1616#define LIBVTCROSS_H 
    1717 
    18 #ifdef GCC_EXPERIMENTAL 
    19     #include <cstdint> 
    20 #else 
    21     #include <stdint.h> 
    22 #endif 
     18#include <stdint.h> 
    2319 
    2420#include "components.h" 
     
    9490 
    9591/* Deactivate/Activate/Disconnect a component by id. 
    96  * 
    97  * TODO This seems silly?  If id's are independent of component type, why not 
    98  * just have one deactivate function that takes an id and operates on it? Why do 
    99  * we need 3 separate functions? They are all components... 
    10092 */ 
    101 bool DeactivateCE(uint32_t id); 
    102 bool DeactivatePE(uint32_t id); 
    103 bool DeactivateSML(uint32_t id); 
    104 bool ActivateCE(uint32_t id); 
    105 bool ActivatePE(uint32_t id); 
    106 bool ActivateSML(uint32_t id); 
    107 bool DisconnectCE(uint32_t id); 
    108 bool DisconnectPE(uint32_t id); 
    109 bool DisconnectSML(uint32_t id); 
     93bool ActivateComponent(uint32_t id); 
     94bool DeactivateComponent(uint32_t id); 
     95bool DisconnectComponent(uint32_t id); 
    11096 
    11197