Difference for plugins/common/plugin_common.c from version 1.4 to 1.5


version 1.4 version 1.5
Line 477
 
Line 477
     cfapiObject_set_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT, weight );      cfapiObject_set_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT, weight );
 }  }
   
   void cf_object_set_weight_limit( object* ob, int weight_limit )
   {
       int val;
       cfapiObject_set_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT_LIMIT, weight_limit );
   }
   
 int cf_object_get_weight( object* ob )  int cf_object_get_weight( object* ob )
 {  {
     int val;      int val;
     return *( int* )cfapiObject_get_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT );      return *( int* )cfapiObject_get_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT );
 }  }
   
   int cf_object_get_weight_limit( object* ob )
   {
       int val;
       int *dummy;
       dummy = cfapiObject_get_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT_LIMIT );
       return *dummy;
   }
   
 /**  /**
  * @return -1=nrof is invalid, 0=nrof is ok#   * @return -1=nrof is invalid, 0=nrof is ok#
  */   */


Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5

File made using version 1.98 of cvs2html by leaf at 2011-07-21 16:58