Actual source code: drawregall.c

      1: #define PETSC_DLL
      2: /*
      3:        Provides the calling sequences for all the basic PetscDraw routines.
      4: */
     5:  #include src/sys/src/draw/drawimpl.h

      8: EXTERN PetscErrorCode PetscDrawCreate_X(PetscDraw);
      9: EXTERN PetscErrorCode PetscDrawCreate_PS(PetscDraw);
     10: EXTERN PetscErrorCode PetscDrawCreate_Null(PetscDraw);
     11: EXTERN PetscErrorCode PetscDrawCreate_Win32(PetscDraw);
     13:
     16: /*@C
     17:   PetscDrawRegisterAll - Registers all of the graphics methods in the PetscDraw package.

     19:   Not Collective

     21:   Level: developer

     23: .seealso:  PetscDrawRegisterDestroy()
     24: @*/
     25: PetscErrorCode PETSC_DLLEXPORT PetscDrawRegisterAll(const char *path)
     26: {

     30:
     31: #if defined(PETSC_HAVE_X11)
     32:   PetscDrawRegisterDynamic(PETSC_DRAW_X,     path,"PetscDrawCreate_X",     PetscDrawCreate_X);
     33: #elif defined(PETSC_HAVE_WINDOWS_H)
     34:   PetscDrawRegisterDynamic(PETSC_DRAW_WIN32, path,"PetscDrawCreate_Win32", PetscDrawCreate_Win32);
     35: #endif
     36:   PetscDrawRegisterDynamic(PETSC_DRAW_NULL,  path,"PetscDrawCreate_Null",  PetscDrawCreate_Null);
     37:   PetscDrawRegisterDynamic(PETSC_DRAW_PS,    path,"PetscDrawCreate_PS",    PetscDrawCreate_PS);
     38:   return(0);
     39: }