Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Started gpgme_context struct

  • Loading branch information...
commit 2cc534864ff9371a5ed73c66fad08c86375be038 1 parent d1d0d9c
sheik authored

Showing 1 changed file with 30 additions and 0 deletions. Show diff stats Hide diff stats

  1. +30 0 lib/main.js
30 lib/main.js
@@ -28,6 +28,36 @@ var puts = libc.declare("puts",
28 28
29 29 var ret = puts("Hello World from jsctypes!");
30 30
  31 +/** context struct
  32 + * defined in context.h
  33 + * NOT YET COMPLETE
  34 + */
  35 +const gpgme_context = new ctypes.StructType("gpgme_context",
  36 + [
  37 + // DECLARE_LOCK (lock);
  38 + { "canceled": ctypes.int },
  39 + // gpgme_engine_info_t engine_info;
  40 + // gpgme_protocol_t protocol;
  41 + // engine_t engine;
  42 + // gpgme_protocol_t sub_protocol;
  43 + { "use_armor": ctypes.unsigned_int }, // default 1
  44 + { "use_textmode": ctypes.unsigned_int }, // default 1
  45 + // gpgme_keylist_mode_t keylist_mode;
  46 + { "include_certs": ctypes.unsigned_int },
  47 + { "signers_len": ctypes.unsigned_int },
  48 + { "signers_size": ctypes.unsigned_int },
  49 + // gpgme_key_t *signers;
  50 + // gpgme_sig_notation_t sig_notations;
  51 + { "lc_ctype": ctypes.char.ptr },
  52 + { "lc_message": ctypes.char.ptr },
  53 + // ctx_op_data_t op_data;
  54 + // gpgme_passphrase_cb_t passphrase_cb;
  55 + { "passphrase_cb_value": ctypes.voidptr_t },
  56 + // gpgme_progress_cb_t progress_cb;
  57 + { "progress_cb_value": ctypes.voidptr_t }
  58 + // struct fd_table fdt;
  59 + // struct gpgme_io_cbs io_cbs;
  60 + ]);
31 61
32 62 /* Move these to run only when plugin is deactivated */
33 63 gpgme.close();

0 comments on commit 2cc5348

Please sign in to comment.
Something went wrong with that request. Please try again.