view src/audacious/legacy/ui_jumptotrack_cache.h @ 4707:512217ec24cc

removed some UI calls from the prefs code
author mf0102 <0102@gmx.at>
date Mon, 07 Jul 2008 23:13:55 +0200
parents 3a56d2786063
children
line wrap: on
line source

/*  Audacious - Cross-platform multimedia player
 *  Copyright (C) 2008  Audacious development team.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; under version 3 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses>.
 *
 *  The Audacious team does not consider modular code linking to
 *  Audacious or using our public API to be a derived work.
 */

#ifndef AUDACIOUS_UI_JUMPTOTRACK_CACHE_H
#define AUDACIOUS_UI_JUMPTOTRACK_CACHE_H

#include <glib.h>

#include "playlist.h"

typedef struct _JumpToTrackCache JumpToTrackCache;
typedef struct _JumpToTrackEntry JumpToTrackEntry;

struct _JumpToTrackCache
{
    gulong playlist_serial;
    GHashTable* keywords;
};

struct _JumpToTrackEntry
{
    PlaylistEntry* entry;
    // We need to manually keep information about current playlist position.
    gulong playlist_position;
};

extern JumpToTrackCache* ui_jump_to_track_cache_new(void);
extern const GArray* ui_jump_to_track_cache_search(JumpToTrackCache* cache, const Playlist* playlist, const gchar* keyword);
extern void ui_jump_to_track_cache_free(JumpToTrackCache* cache);

#endif /* AUDACIOUS_UI_JUMPTOTRACK_CACHE_H */