]>
git.saurik.com Git - apple/launchd.git/blob - launchd/testing/vproc_swap_complex.c
7 #include <vproc_priv.h>
9 static void my_callback(const launch_data_t obj
, const char *key
, void *context
);
13 launch_data_t output_obj
= NULL
;
15 assert(vproc_swap_complex(NULL
, VPROC_GSK_ENVIRONMENT
, NULL
, &output_obj
) == 0);
17 assert(launch_data_get_type(output_obj
) == LAUNCH_DATA_DICTIONARY
);
19 launch_data_dict_iterate(output_obj
, my_callback
, stdout
);
25 my_callback(const launch_data_t obj
, const char *key
, void *context
)
27 fprintf(context
, "%s == %s\n", key
, launch_data_get_string(obj
));