/*
* Create a newly allocated user space probe event rule.
*
- * Returns a new event rule on success, NULL on failure. This event rule must be
- * destroyed using lttng_event_rule_destroy().
- */
-extern struct lttng_event_rule *lttng_event_rule_userspace_probe_create(void);
-
-/*
- * Set the location of a user space probe event rule.
- *
* The location is copied internally.
*
- * Returns LTTNG_EVENT_RULE_STATUS_OK on success, LTTNG_EVENT_RULE_STATUS_INVALID
- * if invalid parameters are passed.
+ * Returns a new event rule on success, NULL on failure. This event rule must be
+ * destroyed using lttng_event_rule_destroy().
*/
-extern enum lttng_event_rule_status lttng_event_rule_userspace_probe_set_location(
- struct lttng_event_rule *rule,
+extern struct lttng_event_rule *lttng_event_rule_userspace_probe_create(
const struct lttng_userspace_probe_location *location);
/*