~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/drivers/win32/registry_drv.c

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
3
 * 
4
 
 * Copyright Ericsson AB 1997-2009. All Rights Reserved.
 
4
 * Copyright Ericsson AB 1997-2011. All Rights Reserved.
5
5
 * 
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
84
84
static int reg_init(void);
85
85
static ErlDrvData reg_start(ErlDrvPort, char*);
86
86
static void reg_stop(ErlDrvData);
87
 
static void reg_from_erlang(ErlDrvData, char*, int);
 
87
static void reg_from_erlang(ErlDrvData, char*, ErlDrvSizeT);
88
88
 
89
89
struct erl_drv_entry registry_driver_entry = {
90
90
    reg_init,
95
95
    NULL,
96
96
    "registry__drv__",
97
97
    NULL,
98
 
    NULL,
99
 
    NULL,
100
 
    NULL,
101
 
    NULL
 
98
    NULL, /* handle */
 
99
    NULL, /* control */
 
100
    NULL, /* timeout */
 
101
    NULL, /* outputv */
 
102
    NULL, /* ready_async */
 
103
    NULL, /* flush */
 
104
    NULL, /* call */
 
105
    NULL, /* event */
 
106
    ERL_DRV_EXTENDED_MARKER,
 
107
    ERL_DRV_EXTENDED_MAJOR_VERSION,
 
108
    ERL_DRV_EXTENDED_MINOR_VERSION,
 
109
    0,
 
110
    NULL,
 
111
    NULL,
 
112
    NULL,
102
113
};
103
114
 
104
115
static int
158
169
}
159
170
 
160
171
static void
161
 
reg_from_erlang(ErlDrvData clientData, char* buf, int count)
 
172
reg_from_erlang(ErlDrvData clientData, char* buf, ErlDrvSizeT count)
162
173
{
163
174
    RegPort* rp = (RegPort *) clientData;
164
175
    int cmd;
301
312
                buf = (char *) &dword;
302
313
                ASSERT(count == 4);
303
314
            }
304
 
            result = RegSetValueEx(rp->hkey, name, 0, type, buf, count);
 
315
            result = RegSetValueEx(rp->hkey, name, 0, type, buf, (DWORD)count);
305
316
            reply(rp, result);
306
317
        }
307
318
        break;