Changeset 4148


Ignore:
Timestamp:
04/06/12 13:25:00 (3 years ago)
Author:
drobilla
Message:

Update test suite for latest state extension.

Location:
trunk/lilv/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lilv/test/lilv_test.c

    r4131 r4148  
    616616    LilvNode* lv2_latency = lilv_new_uri(world, 
    617617            "http://lv2plug.in/ns/lv2core#latency"); 
    618     LilvPort* latency_port = lilv_plugin_get_port_by_parameter( 
     618    LilvPort* latency_port = lilv_plugin_get_port_by_designation( 
    619619        plug, out_class, lv2_latency); 
    620620    lilv_node_free(lv2_latency); 
  • trunk/lilv/test/test_plugin.c

    r4112 r4148  
    154154} 
    155155 
    156 static void 
     156static LV2_State_Status 
    157157save(LV2_Handle                instance, 
    158158     LV2_State_Store_Function  store, 
     
    281281        } 
    282282    } 
    283 } 
    284  
    285 static void 
     283 
     284    return LV2_STATE_SUCCESS; 
     285} 
     286 
     287static LV2_State_Status 
    286288restore(LV2_Handle                  instance, 
    287289        LV2_State_Retrieve_Function retrieve, 
     
    309311 
    310312    if (!map_path) { 
    311         return; 
     313        return LV2_STATE_ERR_NO_FEATURE; 
    312314    } 
    313315 
     
    346348        fprintf(stderr, "error: Failed to restore save file.\n"); 
    347349    } 
     350 
     351    return LV2_STATE_SUCCESS; 
    348352} 
    349353 
     
    352356{ 
    353357    static const LV2_State_Interface state = { save, restore }; 
    354     if (!strcmp(uri, LV2_STATE__Interface)) { 
     358    if (!strcmp(uri, LV2_STATE__interface)) { 
    355359        return &state; 
    356360    } 
Note: See TracChangeset for help on using the changeset viewer.