summaryrefslogtreecommitdiff
path: root/apps/plugins/fireworks.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2008-05-13 09:57:56 +0000
committerSteve Bavin <pondlife@pondlife.me>2008-05-13 09:57:56 +0000
commit652657781805d9cc10d744a49fb23eb17019fbbf (patch)
tree2d1a6ae597a17531f726b57fd9f8cbaa2a46a07f /apps/plugins/fireworks.c
parenta94e40d5153ab698fa8a1b6b57d91fcb6acc905e (diff)
downloadrockbox-652657781805d9cc10d744a49fb23eb17019fbbf.zip
rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.gz
rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.bz2
rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.xz
Plugin parameters should be const.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/fireworks.c')
-rw-r--r--apps/plugins/fireworks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c
index 361930f..d06cbdf 100644
--- a/apps/plugins/fireworks.c
+++ b/apps/plugins/fireworks.c
@@ -22,7 +22,7 @@
PLUGIN_HEADER
-static struct plugin_api* rb;
+static const struct plugin_api* rb;
/***
* FIREWORKS.C by ZAKK ROBERTS
@@ -385,7 +385,7 @@ void fireworks_menu(void)
}
/* this is the plugin entry point */
-enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
+enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
{
(void)parameter;
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /// \file streaminfo.h #ifndef _MPCDEC_STREAMINFO_H_ #define _MPCDEC_STREAMINFO_H_ #ifdef WIN32 #pragma once #endif #include "mpc_types.h" #ifdef __cplusplus extern "C" { #endif typedef mpc_int32_t mpc_streaminfo_off_t; /// \brief mpc stream properties structure /// /// Structure containing all the properties of an mpc stream. Populated /// by the streaminfo_read function. typedef struct mpc_streaminfo { /// @name Core mpc stream properties //@{ mpc_uint32_t sample_freq; ///< Sample frequency of stream mpc_uint32_t channels; ///< Number of channels in stream mpc_uint32_t stream_version; ///< Streamversion of stream mpc_uint32_t bitrate; ///< Bitrate of stream file (in bps) double average_bitrate; ///< Average bitrate of stream (in bits/sec) mpc_uint32_t max_band; ///< Maximum band-index used in stream (0...31) mpc_uint32_t ms; ///< Mid/side stereo (0: off, 1: on) mpc_uint32_t fast_seek; ///< True if stream supports fast-seeking (sv7) mpc_uint32_t block_pwr; ///< Number of frames in a block = 2^block_pwr (sv8) //@} /// @name Replaygain properties //@{ mpc_uint16_t gain_title; ///< Replaygain title value mpc_uint16_t gain_album; ///< Replaygain album value mpc_uint16_t peak_album; ///< Peak album loudness level mpc_uint16_t peak_title; ///< Peak title loudness level //@} /// @name True gapless properties //@{ mpc_uint32_t is_true_gapless; ///< True gapless? (0: no, 1: yes) mpc_uint64_t samples; ///< Number of samples in the stream mpc_uint64_t beg_silence; ///< Number of samples that must not be played at the beginning of the stream //@} /// @name Encoder informations //@{ mpc_uint32_t encoder_version; ///< Version of encoder used /* rockbox: not used char encoder[256]; ///< Encoder name */ mpc_bool_t pns; ///< pns used float profile; ///< Quality profile of stream /* rockbox: not used const char* profile_name; ///< Name of profile used by stream */ //@} mpc_streaminfo_off_t header_position; ///< Byte offset of position of header in stream mpc_streaminfo_off_t tag_offset; ///< Offset to file tags mpc_streaminfo_off_t total_file_length; ///< Total length of underlying file } mpc_streaminfo; /* rockbox: not used /// Gets length of stream si, in seconds. /// \return length of stream in seconds MPC_API double mpc_streaminfo_get_length(mpc_streaminfo *si); /// Returns length of stream si, in samples. /// \return length of stream in samples MPC_API mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si); */ #ifdef __cplusplus } #endif #endif