{"action":"opened","issue":{"url":"https://api.github.com/repos/acplt/open62541/issues/426","labels_url":"https://api.github.com/repos/acplt/open62541/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/acplt/open62541/issues/426/comments","events_url":"https://api.github.com/repos/acplt/open62541/issues/426/events","html_url":"https://github.com/acplt/open62541/issues/426","id":108679048,"number":426,"title":"Object and Variable Instantiation","user":{"login":"jpfr","id":1726411,"avatar_url":"https://avatars.githubusercontent.com/u/1726411?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfr","html_url":"https://github.com/jpfr","followers_url":"https://api.github.com/users/jpfr/followers","following_url":"https://api.github.com/users/jpfr/following{/other_user}","gists_url":"https://api.github.com/users/jpfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfr/subscriptions","organizations_url":"https://api.github.com/users/jpfr/orgs","repos_url":"https://api.github.com/users/jpfr/repos","events_url":"https://api.github.com/users/jpfr/events{/privacy}","received_events_url":"https://api.github.com/users/jpfr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-28T15:14:00Z","updated_at":"2015-09-28T15:14:00Z","closed_at":null,"body":"Hey @ichrispa,\r\n\r\nua_types.h defines\r\n`typedef UA_StatusCode (*UA_InstantiationCallback)(UA_NodeId objectId, UA_NodeId definitionId,\r\nvoid *handle);`\r\n\r\nI'd like to move instantiation into the AddNodes service.\r\nThe UA_AddNodesItem structure has a special field `typeDefinition` that points to the ObjectType / VariableType that shall be instantiated.\r\n\r\nCan we **add the instantiationcallback to all UA_ObjectTypeNodes and UA_VariableTypesNodes**?\r\nThe callback would normally be null, but can be set internally like an attribute."}}