#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
-#include <ust/ustcmd.h>
+#include <ust/ustctl.h>
#include "scanning_functions.h"
#include "usterr.h"
#include "cli.h"
pid = parse_pid(argv[1]);
- if (ustcmd_get_cmsf(&cmsf, pid)) {
+ if (ustctl_get_cmsf(&cmsf, pid)) {
ERR("error while trying to list markers for PID %u\n", pid);
return -1;
}
cmsf[i].state,
cmsf[i].fs);
}
- ustcmd_free_cmsf(cmsf);
+ ustctl_free_cmsf(cmsf);
return 0;
}
if (marker)
free(marker);
}
- if (ustcmd_set_marker_state(argv[2], channel, marker, 1, pid)) {
+ if (ustctl_set_marker_state(argv[2], channel, marker, 1, pid)) {
PERROR("error while trying to enable marker %s with PID %u",
argv[i], pid);
result = -1;
free(marker);
return -1;
}
- if (ustcmd_set_marker_state(argv[2], channel, marker, 0, pid)) {
+ if (ustctl_set_marker_state(argv[2], channel, marker, 0, pid)) {
PERROR("error while trying to disable marker %s with PID %u",
argv[i], pid);
result = -1;