File: PsychRegisterProject.h

package info (click to toggle)
psychtoolbox-3 3.0.17.9.dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 84,408 kB
  • sloc: ansic: 171,572; cpp: 20,885; objc: 5,164; sh: 1,878; python: 1,366; php: 384; makefile: 193; java: 113
file content (46 lines) | stat: -rwxr-xr-x 1,122 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
  PsychToolbox2/Source/Common/PsychRegisterProject.h

  PROJECTS: All.

  AUTHORS:
    Allen.Ingling@nyu.edu             awi
    mario.kleiner.de@gmail.com        mk

  PLATFORMS: All.

  HISTORY:
    8/23/02  awi        Created.

*/

//begin include once
#ifndef PSYCH_IS_INCLUDED_PsychRegisterProject
#define PSYCH_IS_INCLUDED_PsychRegisterProject

#include "Psych.h"

#define PSYCH_MAX_FUNCTION_NAME_LENGTH 64
#define PSYCH_MAX_FUNCTIONS 512

typedef struct
{
    char name[PSYCH_MAX_FUNCTION_NAME_LENGTH+1];  // +1 for term null
    PsychFunctionPtr function;
} PsychFunctionTableEntry;

PsychError PsychDescribeModuleFunctions(void);
PsychError PsychRegister(char *name,  PsychFunctionPtr func);
PsychError PsychRegisterExit(PsychFunctionPtr exitFunc);
void PsychResetRegistry(void);
PsychFunctionPtr PsychGetProjectFunction(char *command);
char *PsychGetFunctionName(void);
char *PsychGetModuleName(void);
char *PsychGetBuildDate(void);
char *PsychGetBuildTime(void);
int PsychGetBuildNumber(void);
char *PsychGetVersionString(void);
PsychFunctionPtr PsychGetProjectExitFunction(void);

//end include once
#endif