feedbackspu_init.c revision 587ef8c2ffe13f8b269c52759c98ca454ae8438e
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "cr_spu.h"
#include "cr_environment.h"
#include "cr_string.h"
#include "cr_error.h"
#include "cr_mem.h"
#include "cr_server.h"
#include "feedbackspu.h"
#include <fcntl.h>
#ifndef WINDOWS
#include <unistd.h>
#endif
static SPUFunctions feedback_functions = {
NULL, /* CHILD COPY */
NULL, /* DATA */
_cr_feedback_table /* THE ACTUAL FUNCTIONS */
};
unsigned int context_id,
unsigned int num_contexts )
{
(void) context_id;
(void) num_contexts;
#ifdef CHROMIUM_THREADSAFE
#endif
feedback_spu.has_child = 0;
if (child)
{
}
crStateInit();
feedback_spu.numContexts = 0;
return &feedback_functions;
}
{
}
static int feedbackSPUCleanup(void)
{
return 1;
}
{
*name = "feedback";
*super = "passthrough";
*init = feedbackSPUInit;
return 1;
}