#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wbemcli.h"
#include "wine/debug.h"
#include "wbemprox_private.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (wbemprox) |
|
HRESULT | get_column_index (const struct table *table, const WCHAR *name, UINT *column) |
|
UINT | get_type_size (CIMTYPE type) |
|
static UINT | get_column_size (const struct table *table, UINT column) |
|
static UINT | get_column_offset (const struct table *table, UINT column) |
|
static UINT | get_row_size (const struct table *table) |
|
HRESULT | get_value (const struct table *table, UINT row, UINT column, LONGLONG *val) |
|
BSTR | get_value_bstr (const struct table *table, UINT row, UINT column) |
|
HRESULT | set_value (const struct table *table, UINT row, UINT column, LONGLONG val, CIMTYPE type) |
|
HRESULT | get_method (const struct table *table, const WCHAR *name, class_method **func) |
|
void | free_row_values (const struct table *table, UINT row) |
|
void | clear_table (struct table *table) |
|
void | free_columns (struct column *columns, UINT num_cols) |
|
void | free_table (struct table *table) |
|
void | release_table (struct table *table) |
|
struct table * | addref_table (struct table *table) |
|
struct table * | grab_table (const WCHAR *name) |
|
struct table * | create_table (const WCHAR *name, UINT num_cols, const struct column *columns, UINT num_rows, UINT num_allocated, BYTE *data, enum fill_status(*fill)(struct table *, const struct expr *cond)) |
|
BOOL | add_table (struct table *table) |
|
BSTR | get_method_name (const WCHAR *class, UINT index) |
|
◆ COBJMACROS
◆ add_table()
Definition at line 400 of file table.c.
401{
403
405 {
407 {
410 }
411 }
415}
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Referenced by create_signature_table().
◆ addref_table()
◆ clear_table()
Definition at line 314 of file table.c.
315{
317
319
322 {
327 }
328}
static BOOL heap_free(void *mem)
void free_row_values(const struct table *table, UINT row)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
enum fill_status(* fill)(struct table *, const struct expr *cond)
Referenced by exec_select_view(), and free_table().
◆ create_table()
Definition at line 380 of file table.c.
383{
385
398}
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
static void * heap_alloc(size_t len)
static void list_init(struct list_entry *head)
static WCHAR * heap_strdupW(const WCHAR *str)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int JSAMPARRAY int int num_rows
int JSAMPARRAY int int JDIMENSION num_cols
const struct column * columns
#define TABLE_FLAG_DYNAMIC
Referenced by create_signature_table().
◆ free_columns()
◆ free_row_values()
Definition at line 292 of file table.c.
293{
296
298 {
300
303 {
305 }
307 {
310 }
311 }
312}
void destroy_array(struct array *array, CIMTYPE type)
HRESULT get_value(const struct table *table, UINT row, UINT column, LONGLONG *val)
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
GLuint GLuint GLsizei GLenum type
Referenced by clear_table(), fill_baseboard(), fill_bios(), fill_cdromdrive(), fill_compsys(), fill_compsysproduct(), fill_datafile(), fill_directory(), fill_diskdrive(), fill_diskdrivetodiskpartition(), fill_diskpartition(), fill_displaycontrollerconfig(), fill_ip4routetable(), fill_logicaldisk(), fill_logicaldisktopartition(), fill_networkadapter(), fill_networkadapterconfig(), fill_operatingsystem(), fill_physicalmemory(), fill_pnpentity(), fill_printer(), fill_process(), fill_processor(), fill_service(), fill_systemenclosure(), and fill_videocontroller().
◆ free_table()
Definition at line 338 of file table.c.
339{
341
344 {
351 }
352}
static void list_remove(struct list_entry *entry)
void clear_table(struct table *table)
void free_columns(struct column *columns, UINT num_cols)
◆ get_column_index()
◆ get_column_offset()
◆ get_column_size()
◆ get_method()
Definition at line 269 of file table.c.
270{
272
274 {
276 {
278 {
281
285 }
286 }
287 }
289
290}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
HRESULT() class_method(IWbemClassObject *, IWbemClassObject *, IWbemClassObject **)
Referenced by wbem_services_ExecMethod().
◆ get_method_name()
Definition at line 417 of file table.c.
418{
422
424
426 {
428 {
430 {
434 }
436 }
437 }
440}
struct table * grab_table(const WCHAR *name)
void release_table(struct table *table)
GLuint GLuint GLsizei count
BSTR WINAPI SysAllocString(LPCOLESTR str)
Referenced by class_object_NextMethod().
◆ get_row_size()
Definition at line 94 of file table.c.
95{
97}
static UINT get_column_offset(const struct table *table, UINT column)
Referenced by get_value(), and set_value().
◆ get_type_size()
Definition at line 49 of file table.c.
50{
52
54 {
72 return sizeof(
WCHAR *);
75 default:
76 ERR(
"unhandled type %u\n",
type);
77 break;
78 }
80}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by get_column_size().
◆ get_value()
◆ get_value_bstr()
Definition at line 158 of file table.c.
159{
160 static const WCHAR fmt_signedW[] = {
'%',
'd',0};
161 static const WCHAR fmt_unsignedW[] = {
'%',
'u',0};
162 static const WCHAR fmt_signed64W[] = {
'%',
'I',
'6',
'4',
'd',0};
163 static const WCHAR fmt_unsigned64W[] = {
'%',
'I',
'6',
'4',
'u',0};
164 static const WCHAR fmt_strW[] = {
'\"',
'%',
's',
'\"',0};
165 static const WCHAR trueW[] = {
'T',
'R',
'U',
'E',0};
166 static const WCHAR falseW[] = {
'F',
'A',
'L',
'S',
'E',0};
171
173 {
174 FIXME(
"array to string conversion not handled\n");
176 }
178
180 {
184
193
198
203
207
211
212 default:
214 break;
215 }
217}
static const WCHAR falseW[]
static const WCHAR trueW[]
static unsigned int number
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
Referenced by build_proplist(), get_body_text(), and get_propval().
◆ grab_table()
◆ release_table()
◆ set_value()
Definition at line 219 of file table.c.
221{
222 UINT col_offset, row_size;
224
226
230
232 {
237 break;
240 break;
243 break;
246 break;
249 break;
252 break;
255 break;
258 break;
261 break;
262 default:
263 FIXME(
"unhandled column type %u\n",
type);
265 }
267}
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wbemprox |
| ) |
|