@@ -96,12 +96,12 @@ typedef struct {
9696 * @brief Initialize auth manager
9797 * @param storage Secure storage callbacks (can be NULL for in-memory only)
9898 */
99- void rac_auth_init (const rac_secure_storage_t * storage );
99+ RAC_API void rac_auth_init (const rac_secure_storage_t * storage );
100100
101101/**
102102 * @brief Reset auth manager state
103103 */
104- void rac_auth_reset (void );
104+ RAC_API void rac_auth_reset (void );
105105
106106// =============================================================================
107107// Token State
@@ -111,7 +111,7 @@ void rac_auth_reset(void);
111111 * @brief Check if currently authenticated
112112 * @return true if valid access token exists
113113 */
114- bool rac_auth_is_authenticated (void );
114+ RAC_API bool rac_auth_is_authenticated (void );
115115
116116/**
117117 * @brief Check if token needs refresh
@@ -120,31 +120,31 @@ bool rac_auth_is_authenticated(void);
120120 *
121121 * @return true if token should be refreshed
122122 */
123- bool rac_auth_needs_refresh (void );
123+ RAC_API bool rac_auth_needs_refresh (void );
124124
125125/**
126126 * @brief Get current access token
127127 * @return Access token string, or NULL if not authenticated
128128 */
129- const char * rac_auth_get_access_token (void );
129+ RAC_API const char * rac_auth_get_access_token (void );
130130
131131/**
132132 * @brief Get current device ID
133133 * @return Device ID string, or NULL if not set
134134 */
135- const char * rac_auth_get_device_id (void );
135+ RAC_API const char * rac_auth_get_device_id (void );
136136
137137/**
138138 * @brief Get current user ID
139139 * @return User ID string, or NULL if not set
140140 */
141- const char * rac_auth_get_user_id (void );
141+ RAC_API const char * rac_auth_get_user_id (void );
142142
143143/**
144144 * @brief Get current organization ID
145145 * @return Organization ID string, or NULL if not set
146146 */
147- const char * rac_auth_get_organization_id (void );
147+ RAC_API const char * rac_auth_get_organization_id (void );
148148
149149// =============================================================================
150150// Request Building
@@ -158,7 +158,7 @@ const char* rac_auth_get_organization_id(void);
158158 * @param config SDK configuration with credentials
159159 * @return JSON string (caller must free), or NULL on error
160160 */
161- char * rac_auth_build_authenticate_request (const rac_sdk_config_t * config );
161+ RAC_API char * rac_auth_build_authenticate_request (const rac_sdk_config_t * config );
162162
163163/**
164164 * @brief Build token refresh request JSON
@@ -167,7 +167,7 @@ char* rac_auth_build_authenticate_request(const rac_sdk_config_t* config);
167167 *
168168 * @return JSON string (caller must free), or NULL if no refresh token
169169 */
170- char * rac_auth_build_refresh_request (void );
170+ RAC_API char * rac_auth_build_refresh_request (void );
171171
172172// =============================================================================
173173// Response Handling
@@ -181,7 +181,7 @@ char* rac_auth_build_refresh_request(void);
181181 * @param json JSON response body
182182 * @return 0 on success, -1 on parse error
183183 */
184- int rac_auth_handle_authenticate_response (const char * json );
184+ RAC_API int rac_auth_handle_authenticate_response (const char * json );
185185
186186/**
187187 * @brief Parse and store refresh response
@@ -191,7 +191,7 @@ int rac_auth_handle_authenticate_response(const char* json);
191191 * @param json JSON response body
192192 * @return 0 on success, -1 on parse error
193193 */
194- int rac_auth_handle_refresh_response (const char * json );
194+ RAC_API int rac_auth_handle_refresh_response (const char * json );
195195
196196// =============================================================================
197197// Token Management
@@ -214,14 +214,14 @@ int rac_auth_handle_refresh_response(const char* json);
214214 * @param out_needs_refresh Set to true if refresh HTTP call is needed
215215 * @return 0 on success (token valid), 1 if refresh needed, -1 on error
216216 */
217- int rac_auth_get_valid_token (const char * * out_token , bool * out_needs_refresh );
217+ RAC_API int rac_auth_get_valid_token (const char * * out_token , bool * out_needs_refresh );
218218
219219/**
220220 * @brief Clear all authentication state
221221 *
222222 * Clears in-memory state and secure storage.
223223 */
224- void rac_auth_clear (void );
224+ RAC_API void rac_auth_clear (void );
225225
226226// =============================================================================
227227// Persistence
@@ -234,7 +234,7 @@ void rac_auth_clear(void);
234234 *
235235 * @return 0 on success (tokens loaded), -1 if not found or error
236236 */
237- int rac_auth_load_stored_tokens (void );
237+ RAC_API int rac_auth_load_stored_tokens (void );
238238
239239/**
240240 * @brief Save current tokens to secure storage
@@ -243,7 +243,7 @@ int rac_auth_load_stored_tokens(void);
243243 *
244244 * @return 0 on success, -1 on error
245245 */
246- int rac_auth_save_tokens (void );
246+ RAC_API int rac_auth_save_tokens (void );
247247
248248#ifdef __cplusplus
249249}
0 commit comments