{"action":"created","issue":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/175","labels_url":"https://api.github.com/repos/flux-framework/flux-core/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/flux-framework/flux-core/issues/175/comments","events_url":"https://api.github.com/repos/flux-framework/flux-core/issues/175/events","html_url":"https://github.com/flux-framework/flux-core/pull/175","id":73134130,"number":175,"title":"API: add core.h header file for main public API","user":{"login":"garlick","id":169947,"avatar_url":"https://avatars.githubusercontent.com/u/169947?v=3","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flux-framework/flux-core/labels/review","name":"review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-04T21:34:32Z","updated_at":"2015-05-05T22:52:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/flux-framework/flux-core/pulls/175","html_url":"https://github.com/flux-framework/flux-core/pull/175","diff_url":"https://github.com/flux-framework/flux-core/pull/175.diff","patch_url":"https://github.com/flux-framework/flux-core/pull/175.patch"},"body":"This PR is a continuation of #173, in which we can discuss a revamp of the Flux public API.\r\nI will add commits as we go and squash them down at the end.  Since in-tree code is built against `src/include/flux/core.h` and `src/lib/libcore/core.h` is only for external users, I modified the latter in this PR.\r\n\r\n* I think we agreed in #173 that there should be one `flux_open()`/`flux_close()` which can internally select the appropriate back end handle implementation.  I renamed the open flags to `FLUX_O_*` (from `FLUX_FLAGS_*`) to make it clear they are open flags.\r\n\r\n* Pulled in the low-level `flux_sendmsg()`, `flux_recvmsg()`, `flux_putmsg()` functions.  I changed the prototypes slightly so they all look similar, with `FLUX_IO_*` flags expressing the optional behavior.  Converted to flux-specific opaque message type `flux_msg_t` as we had discussed.\r\n\r\n* Pulled in the high level `flux_publish()`, `flux_request()`, and `flux_rpc()` functions.  JSON arguments are now valid json strings as we had discussed.  I added a timeout to `flux_rpc()`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/comments/99254422","html_url":"https://github.com/flux-framework/flux-core/pull/175#issuecomment-99254422","issue_url":"https://api.github.com/repos/flux-framework/flux-core/issues/175","id":99254422,"user":{"login":"garlick","id":169947,"avatar_url":"https://avatars.githubusercontent.com/u/169947?v=3","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T22:52:38Z","updated_at":"2015-05-05T22:52:38Z","body":"Dropped, and I added an accessor for the sender of a request.  We can always pull them in again if necessary."}}