"Fossies" - the Fresh Open Source Software Archive

Member "audacious-3.10.1/src/libaudcore/plugins-internal.h" (26 Dec 2018, 2201 Bytes) of package /linux/misc/audacious-3.10.1.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "plugins-internal.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 3.8.2_vs_3.9.

    1 /*
    2  * internal.h
    3  * Copyright 2014 John Lindgren
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions are met:
    7  *
    8  * 1. Redistributions of source code must retain the above copyright notice,
    9  *    this list of conditions, and the following disclaimer.
   10  *
   11  * 2. Redistributions in binary form must reproduce the above copyright notice,
   12  *    this list of conditions, and the following disclaimer in the documentation
   13  *    provided with the distribution.
   14  *
   15  * This software is provided "as is" and without any warranty, express or
   16  * implied. In no event shall the authors be liable for any damages arising from
   17  * the use of this software.
   18  */
   19 
   20 #ifndef LIBAUDCORE_PLUGINS_INTERNAL_H
   21 #define LIBAUDCORE_PLUGINS_INTERNAL_H
   22 
   23 #include "plugins.h"
   24 #include "objects.h"
   25 
   26 enum class InputKey;
   27 class Plugin;
   28 
   29 enum class PluginEnabled {
   30     Disabled = 0,
   31     Primary = 1,
   32     Secondary = 2
   33 };
   34 
   35 /* plugin-init.c */
   36 void start_plugins_one ();
   37 void start_plugins_two ();
   38 void stop_plugins_two ();
   39 void stop_plugins_one ();
   40 
   41 bool plugin_enable_secondary (PluginHandle * plugin, bool enable);
   42 
   43 /* plugin-load.c */
   44 void plugin_system_init ();
   45 void plugin_system_cleanup ();
   46 bool plugin_check_flags (int flags);
   47 Plugin * plugin_load (const char * path);
   48 
   49 /* plugin-registry.c */
   50 void plugin_registry_load ();
   51 void plugin_registry_prune ();
   52 void plugin_registry_save ();
   53 void plugin_registry_cleanup ();
   54 
   55 void plugin_register (const char * path, int timestamp);
   56 PluginEnabled plugin_get_enabled (PluginHandle * plugin);
   57 void plugin_set_enabled (PluginHandle * plugin, PluginEnabled enabled);
   58 void plugin_set_failed (PluginHandle * plugin);
   59 
   60 bool transport_plugin_has_scheme (PluginHandle * plugin, const char * scheme);
   61 bool playlist_plugin_can_save (PluginHandle * plugin);
   62 const Index<String> & playlist_plugin_get_exts (PluginHandle * plugin);
   63 bool playlist_plugin_has_ext (PluginHandle * plugin, const char * ext);
   64 bool input_plugin_has_key (PluginHandle * plugin, InputKey key, const char * value);
   65 bool input_plugin_has_subtunes (PluginHandle * plugin);
   66 bool input_plugin_can_write_tuple (PluginHandle * plugin);
   67 
   68 #endif