Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.81 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <malloc.h>
  2. #include <iostream>
  3. #include <stdio.h>
  4.  
  5. typedef struct Bitmap {
  6.         unsigned int* pixels;
  7.         unsigned int width;
  8.         unsigned int height;
  9.         unsigned int stride;
  10.         unsigned int pixelFormat;
  11. };
  12.  
  13. typedef struct FeatherActionlistInput {
  14.         Bitmap *image;
  15.         wchar_t *actionlist;
  16.         char *resourceDir;
  17. };
  18.  
  19. typedef struct FeatherActionlistOutput {
  20.         Bitmap *image;
  21.         wchar_t *log;
  22. // 0 = ok, 1 = error
  23.         unsigned int status;
  24.         wchar_t *error;
  25. };
  26.  
  27. extern "C"
  28. {
  29.         __declspec(dllexport) FeatherActionlistOutput* FeatherActionlist(FeatherActionlistInput *input);
  30.         __declspec(dllexport) void FreeFeatherActionlistOutput(FeatherActionlistOutput*);
  31. }
  32.  
  33.  
  34. FeatherActionlistOutput* FeatherActionlist(FeatherActionlistInput *input)
  35. {
  36. }
  37.  
  38. void FreeFeatherActionlistOutput(FeatherActionlistOutput* output)
  39. {
  40. }