<p>Exposing <code>project_close()</code> and <code>project_load_file()</code> seems reasonable if they are needed.</p>
<p>The new API functions to access <code>ProjectPrefs</code> seem weird. For one, the doc-comments are not useful, and might as well just be <code>/***/</code> since they don't actual describe what the functions do at all, just what field of some private undocumented struct they access is called. Moreover, usually in Geany (for better or worse) we would expose the struct members directly to the API using doc-comments (and obviously moving the struct out of the <code>#ifdef GEANY_PRIVATE</code> guard).</p>
<p>I don't feel really strongly about accessor functions vs exposing the struct, but it would be cool to fix the doc-comments so they explain what the functions are for (I genuinely have no idea). Also if keeping the accessor functions or not, it might be useful to take the opportunity to name the functions/field something better since <code>project_session</code> as a boolean is not a very good name. Something like <code>is_project_session</code> or <code>project_session_deleted</code> or <code>dont_load_project_session</code> or whatever it's actually for would be better, IMO.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2234?email_source=notifications&email_token=AAIOWJ7RS6ZWTNE6MG4CQTDQCTHFXA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDLXI#issuecomment-517879261">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYNVDIFBCR5L6JJFALQCTHFXANCNFSM4IHNIU3Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4C3IK2CYHGSZXXGKTQCTHFXA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDLXI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2234?email_source=notifications\u0026email_token=AAIOWJ7RS6ZWTNE6MG4CQTDQCTHFXA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDLXI#issuecomment-517879261",
"url": "https://github.com/geany/geany/pull/2234?email_source=notifications\u0026email_token=AAIOWJ7RS6ZWTNE6MG4CQTDQCTHFXA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDLXI#issuecomment-517879261",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>