@@ -15,7 +15,8 @@ module curl
15
15
public :: curl_easy_perform
16
16
public :: curl_easy_cleanup
17
17
public :: curl_easy_setopt
18
- public :: curl_easy_setopt_
18
+ public :: curl_easy_setopt_c_ptr
19
+ public :: curl_easy_setopt_c_funptr
19
20
public :: curl_slist_append
20
21
public :: curl_slist_free_all
21
22
public :: curl_version_info
@@ -404,13 +405,22 @@ function curl_easy_perform(curl) bind(c, name='curl_easy_perform')
404
405
end function curl_easy_perform
405
406
406
407
! CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
407
- function curl_easy_setopt_ (curl , option , parameter ) bind(c, name= ' curl_easy_setopt' )
408
+ function curl_easy_setopt_c_ptr (curl , option , parameter ) bind(c, name= ' curl_easy_setopt' )
408
409
import :: c_int, c_ptr
409
410
type (c_ptr), intent (in ), value :: curl
410
411
integer (kind= c_int), intent (in ), value :: option
411
412
type (c_ptr), intent (in ), value :: parameter
412
- integer (kind= c_int) :: curl_easy_setopt_
413
- end function curl_easy_setopt_
413
+ integer (kind= c_int) :: curl_easy_setopt_c_ptr
414
+ end function curl_easy_setopt_c_ptr
415
+
416
+ ! CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
417
+ function curl_easy_setopt_c_funptr (curl , option , parameter ) bind(c, name= ' curl_easy_setopt' )
418
+ import :: c_funptr, c_int, c_ptr
419
+ type (c_ptr), intent (in ), value :: curl
420
+ integer (kind= c_int), intent (in ), value :: option
421
+ type (c_funptr), intent (in ), value :: parameter
422
+ integer (kind= c_int) :: curl_easy_setopt_c_funptr
423
+ end function curl_easy_setopt_c_funptr
414
424
415
425
! struct curl_slist *curl_slist_append(struct curl_slist *list, const char *string)
416
426
function curl_slist_append (list , string ) bind(c, name= ' curl_slist_append' )
@@ -470,7 +480,7 @@ function curl_easy_setopt_char(curl, option, parameter)
470
480
character (len=* ), target , intent (in ) :: parameter
471
481
integer :: curl_easy_setopt_char
472
482
473
- curl_easy_setopt_char = curl_easy_setopt_ (curl, option, c_loc(parameter ))
483
+ curl_easy_setopt_char = curl_easy_setopt_c_ptr (curl, option, c_loc(parameter ))
474
484
end function curl_easy_setopt_char
475
485
476
486
! CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
@@ -480,7 +490,7 @@ function curl_easy_setopt_fptr(curl, option, parameter)
480
490
type (c_funptr), intent (in ) :: parameter
481
491
integer :: curl_easy_setopt_fptr
482
492
483
- curl_easy_setopt_fptr = curl_easy_setopt_ (curl, option, parameter )
493
+ curl_easy_setopt_fptr = curl_easy_setopt_c_funptr (curl, option, parameter )
484
494
end function curl_easy_setopt_fptr
485
495
486
496
! CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
@@ -490,7 +500,7 @@ function curl_easy_setopt_int(curl, option, parameter)
490
500
integer (kind= 4 ), target , intent (in ) :: parameter
491
501
integer :: curl_easy_setopt_int
492
502
493
- curl_easy_setopt_int = curl_easy_setopt_ (curl, option, c_loc(parameter ))
503
+ curl_easy_setopt_int = curl_easy_setopt_c_ptr (curl, option, c_loc(parameter ))
494
504
end function curl_easy_setopt_int
495
505
496
506
! CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
@@ -500,7 +510,7 @@ function curl_easy_setopt_long(curl, option, parameter)
500
510
integer (kind= 8 ), target , intent (in ) :: parameter
501
511
integer :: curl_easy_setopt_long
502
512
503
- curl_easy_setopt_long = curl_easy_setopt_ (curl, option, c_loc(parameter ))
513
+ curl_easy_setopt_long = curl_easy_setopt_c_ptr (curl, option, c_loc(parameter ))
504
514
end function curl_easy_setopt_long
505
515
506
516
! CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)
@@ -510,7 +520,7 @@ function curl_easy_setopt_ptr(curl, option, parameter)
510
520
type (c_ptr), intent (in ) :: parameter
511
521
integer :: curl_easy_setopt_ptr
512
522
513
- curl_easy_setopt_ptr = curl_easy_setopt_ (curl, option, parameter )
523
+ curl_easy_setopt_ptr = curl_easy_setopt_c_ptr (curl, option, parameter )
514
524
end function curl_easy_setopt_ptr
515
525
516
526
! curl_version_info_data *curl_version_info(CURLversion age)
0 commit comments