* Hook disconnection * * For this type, removal of the last link destroys the node */
| 484 | * For this type, removal of the last link destroys the node |
| 485 | */ |
| 486 | static int |
| 487 | ng_xxx_disconnect(hook_p hook) |
| 488 | { |
| 489 | if (NG_HOOK_PRIVATE(hook)) |
| 490 | ((struct XXX_hookinfo *) (NG_HOOK_PRIVATE(hook)))->hook = NULL; |
| 491 | if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0) |
| 492 | && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) /* already shutting down? */ |
| 493 | ng_rmnode_self(NG_HOOK_NODE(hook)); |
| 494 | return (0); |
| 495 | } |
nothing calls this directly
no test coverage detected