VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_diffutil_snake_callback_t Struct Reference

#include <vlc_diffutil.h>

Data Fields

void(* insert )(void *opaque, const void *listOld, uint32_t posOld, const void *listNew, uint32_t posNew)
 notify that the item from listNew at position posNew is inserted in list listOld at position posOld
 
void(* remove )(void *opaque, const void *listOld, uint32_t posOld, const void *listNew, uint32_t posNew)
 notify that the item from listOld at position posOld is removed
 
void(* equal )(void *opaque, const void *listOld, uint32_t posOld, const void *listNew, uint32_t posNew)
 notify that the item as posOld from the old list listOld is unchanged, the respective item position in the new list is at the position posNew in listNew
 

Field Documentation

◆ equal

void(* vlc_diffutil_snake_callback_t::equal) (void *opaque, const void *listOld, uint32_t posOld, const void *listNew, uint32_t posNew)

notify that the item as posOld from the old list listOld is unchanged, the respective item position in the new list is at the position posNew in listNew

Referenced by vlc_diffutil_walk_snake().

◆ insert

void(* vlc_diffutil_snake_callback_t::insert) (void *opaque, const void *listOld, uint32_t posOld, const void *listNew, uint32_t posNew)

notify that the item from listNew at position posNew is inserted in list listOld at position posOld

Parameters
opaqueuser data from function vlc_diffutil_walk_snake
listOldpointer to the old model
posOldposition of the element inserted in the old model (before removal)
listNewpointer to the new model
posNewposition of the element inserted in the new model

Referenced by vlc_diffutil_walk_snake().

◆ remove

void(* vlc_diffutil_snake_callback_t::remove) (void *opaque, const void *listOld, uint32_t posOld, const void *listNew, uint32_t posNew)

notify that the item from listOld at position posOld is removed

Parameters
opaqueuser data from function vlc_diffutil_walk_snake
listOldpointer to the old model
posOldposition of the element removed in the old model
listNewpointer to the new model
posNewposition of the element removed in the new model (before removal)

Referenced by vlc_diffutil_build_change_list(), and vlc_diffutil_walk_snake().


The documentation for this struct was generated from the following file: