Commit 0153b75b authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

Removed some typedefs.

git-svn-id: https://pimpmobile.svn.sourceforge.net/svnroot/pimpmobile/trunk@461 3d5ecaf0-f903-0410-b953-c2c1a4d75763
parent 2426fd29
......@@ -4,13 +4,13 @@
#include <stdlib.h>
#include <string.h>
void pimp_sample_bank_init(pimp_sample_bank *sample_bank)
void pimp_sample_bank_init(struct pimp_sample_bank *sample_bank)
{
sample_bank->data = NULL;
sample_bank->size = 0;
}
int pimp_sample_bank_find_sample_data(const pimp_sample_bank *sample_bank, void *data, pimp_size_t len)
int pimp_sample_bank_find_sample_data(const struct pimp_sample_bank *sample_bank, void *data, pimp_size_t len)
{
pimp_size_t i;
ASSERT(NULL != sample_bank);
......@@ -24,7 +24,7 @@ int pimp_sample_bank_find_sample_data(const pimp_sample_bank *sample_bank, void
return -1; /* not found */
}
int pimp_sample_bank_insert_sample_data(pimp_sample_bank *sample_bank, void *data, pimp_size_t len)
int pimp_sample_bank_insert_sample_data(struct pimp_sample_bank *sample_bank, void *data, pimp_size_t len)
{
int pos = sample_bank->size;
......
......@@ -8,24 +8,24 @@ extern "C" {
#include "pimp_base.h"
#include "pimp_debug.h"
typedef struct pimp_sample_bank
struct pimp_sample_bank
{
void *data;
pimp_size_t size;
} pimp_sample_bank;
};
void pimp_sample_bank_init(pimp_sample_bank *sample_bank);
void pimp_sample_bank_init(struct pimp_sample_bank *sample_bank);
static INLINE void *pimp_sample_bank_get_sample_data(const pimp_sample_bank *sample_bank, int offset)
static INLINE void *pimp_sample_bank_get_sample_data(const struct pimp_sample_bank *sample_bank, int offset)
{
ASSERT(NULL != sample_bank);
ASSERT(NULL != sample_bank);
ASSERT(offset < sample_bank->size);
return (void*)((u8*)sample_bank->data + offset);
}
int pimp_sample_bank_find_sample_data(const pimp_sample_bank *sample_bank, void *data, pimp_size_t len);
int pimp_sample_bank_insert_sample_data(pimp_sample_bank *sample_bank, void *data, pimp_size_t len);
int pimp_sample_bank_find_sample_data(const struct pimp_sample_bank *sample_bank, void *data, pimp_size_t len);
int pimp_sample_bank_insert_sample_data(struct pimp_sample_bank *sample_bank, void *data, pimp_size_t len);
#ifdef __cplusplus
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment