~ubuntu-branches/ubuntu/vivid/nqp/vivid-proposed

« back to all changes in this revision

Viewing changes to src/6model/reprs/NativeCall.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-11-01 12:09:18 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131101120918-kx51sl0sxl3exsxi
Tags: 2013.10-1
* New upstream release
* Bump versioned (Build-)Depends on parrot
* Update patches
* Install new README.pod
* Fix vcs-field-not-canonical
* Do not install rubyish examples
* Do not Depends on parrot-devel anymore
* Add 07_disable-serialization-tests.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef NATIVECALL_H_GUARD
2
 
#define NATIVECALL_H_GUARD
3
 
 
4
 
#include "dyncall.h"
5
 
#include "dynload.h"
6
 
#include "dyncall_callback.h"
7
 
 
8
 
/* Body of a NativeCall. */
9
 
typedef struct {
10
 
    char *lib_name;
11
 
    DLLib *lib_handle;
12
 
    void *entry_point;
13
 
    INTVAL convention;
14
 
    INTVAL num_args;
15
 
    INTVAL *arg_types;
16
 
    INTVAL ret_type;
17
 
    PMC **arg_info;
18
 
} NativeCallBody;
19
 
 
20
 
/* This is how an instance with the NativeCall representation looks. */
21
 
typedef struct {
22
 
    SixModelObjectCommonalities common;
23
 
    NativeCallBody body;
24
 
} NativeCallInstance;
25
 
 
26
 
/* Initializes the NativeCall REPR. */
27
 
REPROps * NativeCall_initialize(PARROT_INTERP,
28
 
        PMC * (* wrap_object_func_ptr) (PARROT_INTERP, void *obj),
29
 
        PMC * (* create_stable_func_ptr) (PARROT_INTERP, REPROps *REPR, PMC *HOW));
30
 
 
31
 
#endif