tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

ref.h (386B)


      1#pragma once
      2
      3#include "list.h"
      4
      5struct ref {
      6	void *data;
      7
      8	struct list_link link;
      9};
     10
     11struct ref *ref_alloc(void *data);
     12void ref_free(void *ref);
     13
     14void refs_free(struct list *list);
     15int refs_index(struct list *list, void *data);
     16
     17struct list_link *refs_find(struct list *list, void *data);
     18int refs_incl(struct list *list, void *data);
     19
     20void refs_rm(struct list *list, void *data);
     21