VirtualBox

source: vbox/trunk/src/VBox/Storage/testcase/VDScriptInterp.cpp@ 44842

Last change on this file since 44842 was 44842, checked in by vboxsync, 12 years ago

Storage/testcase: Script engine updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/** @file
2 *
3 * VBox HDD container test utility - scripting engine, interpreter.
4 */
5
6/*
7 * Copyright (C) 2013 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17#define LOGGROUP LOGGROUP_DEFAULT
18#include <iprt/list.h>
19#include <iprt/mem.h>
20#include <iprt/assert.h>
21
22#include <VBox/log.h>
23
24#include "VDScriptAst.h"
25#include "VDScriptInternal.h"
26
27/**
28 * Interpreter context
29 */
30typedef struct VDSCRIPTINTERPCTX
31{
32 /** List of currently accessible variables and their value. */
33
34} VDSCRIPTINTERPCTX;
35/** Pointer to an interpreter context. */
36typedef VDSCRIPTINTERPCTX *PVDSCRIPTINTERPCTX;
37
38/**
39 * Record an error while interpreting.
40 *
41 * @returns VBox status code passed.
42 */
43static int vdScriptInterpreterError(PVDSCRIPTCTXINT pThis, int rc, RT_SRC_POS_DECL, const char *pszFmt, ...)
44{
45 return rc;
46}
47
48DECLHIDDEN(int) vdScriptCtxInterprete(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTFN pAstFn,
49 PVDSCRIPTARG paArgs, unsigned cArgs,
50 PVDSCRIPTARG pRet)
51{
52 return VERR_NOT_IMPLEMENTED;
53}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette