SPAWNS edges from the definition named `caller` to the Process `program`. */
| 266 | |
| 267 | /* SPAWNS edges from the definition named `caller` to the Process `program`. */ |
| 268 | static int sp_spawns(sp_proj_t *p, const char *caller, const char *program) { |
| 269 | return sp_count(p, |
| 270 | "SELECT COUNT(*) FROM edges e JOIN nodes s ON s.id=e.source_id " |
| 271 | "JOIN nodes t ON t.id=e.target_id WHERE e.project=?1 AND e.type='SPAWNS' " |
| 272 | "AND s.name=?2 AND t.name=?3 AND t.label='Process'", |
| 273 | caller, program); |
| 274 | } |
| 275 | |
| 276 | static int sp_calls(sp_proj_t *p, const char *caller, const char *callee) { |
| 277 | return sp_count(p, |