You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
999 B
35 lines
999 B
/*
|
|
# _____ ___ ____ ___ ____
|
|
# ____| | ____| | | |____|
|
|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
|
|
#-----------------------------------------------------------------------
|
|
# Copyright 2005, ps2dev - http://www.ps2dev.org
|
|
# Licenced under GNU Library General Public License version 2
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* audsrv helpers.
|
|
*/
|
|
|
|
#ifndef __COMMON_H__
|
|
#define __COMMON_H__
|
|
|
|
/** Helper function to easily create threads
|
|
* @param func thread procedure
|
|
* @param priority thread priority (usually 40)
|
|
* @param param optional argument for thread procedure
|
|
* @returns thread_id (int), negative on error
|
|
*
|
|
* Creates a thread based on the given parameter. Upon completion,
|
|
* thread is started.
|
|
*/
|
|
int create_thread(void *func, int priority, void *param);
|
|
|
|
/** Helper to print buffer in hex. Useful for debugging.
|
|
* @param ptr pointer to buffer
|
|
* @param len buffer length
|
|
*/
|
|
void print_hex_buffer(unsigned char *ptr, int len);
|
|
|
|
#endif
|