# IPublishCallback ## **Overview** **Related Modules:** [Softbus](softbus.md) **Description:** Defines the callbacks for successful and failed service publishing. ## **Summary** ## Data Fields

Variable Name

Description

onPublishSuccess )(int publishId)

void(*

onPublishFail )(int publishId, PublishFailReason reason)

void(*